/** * INTERNAL: * Return the fields that make up the identity of the mapped object. For mappings with * a primary key, it will be the set of fields in the primary key. For mappings without * a primary key it will likely be all the fields * @return */ @Override public List<DatabaseField> getIdentityFieldsForMapKey(){ ClassDescriptor descriptor =getReferenceDescriptor(); if (descriptor.getPrimaryKeyFields() != null){ return descriptor.getPrimaryKeyFields(); } else { return getAllFieldsForMapKey(); } }
/** * INTERNAL: * Return the fields that make up the identity of the mapped object. For mappings with * a primary key, it will be the set of fields in the primary key. For mappings without * a primary key it will likely be all the fields * @return */ public List<DatabaseField> getIdentityFieldsForMapKey(){ ClassDescriptor descriptor =getReferenceDescriptor(); if (descriptor.getPrimaryKeyFields() != null){ return descriptor.getPrimaryKeyFields(); } else { return getAllFieldsForMapKey(); } }
/** * INTERNAL: * Return the fields that make up the identity of the mapped object. For mappings with * a primary key, it will be the set of fields in the primary key. For mappings without * a primary key it will likely be all the fields * @return */ @Override public List<DatabaseField> getIdentityFieldsForMapKey(){ ClassDescriptor descriptor =getReferenceDescriptor(); if (descriptor.getPrimaryKeyFields() != null){ return descriptor.getPrimaryKeyFields(); } else { return getAllFieldsForMapKey(); } }