anchor.diff:  <% end
   %>  public static final int MAX_ATTR_ID = <%= last_attribute %>; //Needs to be public as accessed via reflection
   
  -  static final int MIN_RELATION_ID = <%= object_type.extends.nil? ? '1' : "#{j_classname(object_type.schema.object_type_by_name(object_type.extends).java.classname)}.MIN_RELATION_ID << 1"; %>;
  +  static final int MIN_RELATION_ID = <%= object_type.extends.nil? ? '1' : "#{j_classname(object_type.schema.object_type_by_name(object_type.extends).java.classname)}.MAX_RELATION_ID << 1"; %>;
   <%
      last_attribute = "MIN_RELATION_ID"
      object_type.referencing_attributes.select{|a|!a.abstract? && !a.iris.runtime_managed?}.each_with_index do |attribute, index|
  
positive.code: <%= j_add_to_inverse(attribute) %>
    }
  
    public <%= ref_type %> get<%= ref_name %>()
    {
       return <%= ref_name %>;
    }
  
    public void set<%= ref_name %>( final <%= ref_type %> value )
    {
  <%= iris_immutable_check(attribute.name) if attribute.immutable? %>
  <%= iris_nullable_check(attribute.name) if (!attribute.nullable? && !referenced_attribute.java.primitive?) %>
  
negative.code:       ref_type = referenced_attribute.java.java_type
        ref_name = attribute.referencing_link_name
  %>
    public final <%= type %> get<%= name %>()
    {
      if( !isLinked() )
      {
  