anchor.diff:      end
     end
   %>
  -<%= object_type.attributes.collect {|a| java_accessors(a.java.field_name,a.java.java_type) }.join("\n") %>
  +<%= object_type.declared_attributes.collect {|a| java_accessors(a.java.field_name,a.java.java_type) }.join("\n") %>
   <%= object_type.referencing_attributes.collect do |a|
     if a.inverse_relationship_type == :has_many
       java_accessors(pluralize(a.inverse_relationship_name),"java.util.Set<#{a.object_type.java.fully_qualified_name}>")
  
positive.code: import javax.persistence.*;
  import javax.validation.constraints.*;
  
  @SuppressWarnings( { "UnusedDeclaration" } )
  <% if not object_type.jpa.queries.empty? %>@NamedQueries( value = {
  <%= object_type.jpa.queries.collect { |q| "  @NamedQuery( name = \"#{q.fully_qualified_name}\", query = \"#{q.query_string}\" )" }.join(",\n") %>
  } )<% end %>
  @Generated( "Domgen" )
  @Entity
  @Table( name = "<%= object_type.sql.table_name %>",
          uniqueConstraints = {<%=
    object_type.attributes.select{|a|a.unique?}.collect{|a|
    "@UniqueConstraint( columnNames = {\"#{q(a.sql.column_name)}\"})"
    }.join(",\n        ")
  %>})
  public final class <%= object_type.java.classname %>
  {
  <% object_type.attributes.each do |a|
    if !a.persistent?
  %>  @Transient
  <%
  
negative.code:     return "<%= object_type.name %>[" +
  <% object_type.java.debug_attributes.each do |a|
      attr = object_type.attribute_by_name(a)
  %>           "<%= attr.name %> =" + get<%= attr.name %>() + 
  <% end %>           "]";
    }
  
  