anchor.diff:  <% attr.each do |a| -%>
       $_.set<%= a.name %>( <%= defaults.has_attribute?(a.name) ? defaults.value_for(a.name) : Domgen::Naming.camelize(a.name) %> );
   <% end -%>
  -    persist( $_ );
     }
   <% end -%>
   <% end -%>
  
positive.code: <% end -%>
  <% if dao.entity.sync? && dao.entity.sync.transaction_time? -%>
      $_.setDeletedAt( new java.util.Date() );
      persist( $_ );
  <% else -%>
      remove( $_ );
  <% end -%>
  
negative.code: <% dao.entity.attributes.select{|a|!a.immutable? && !a.generated_value? && a.jpa? && a.jpa.persistent?}.each do |a| -%>
      $_.set<%= a.name %>( <%= Domgen::Naming.camelize(a.name) %> );
  <% end -%>
    }
  <% dao.entity.jpa.update_defaults.each do |defaults|
      attr = dao.entity.attributes.select{|a| !a.immutable? && !a.generated_value? && a.jpa? && a.jpa.persistent? && (!defaults.has_attribute?(a.name) || !defaults.value_for(a.name).nil?)}
  