@groovy.transform.AutoClone @groovy.transform.builder.Builder(builderStrategy: SimpleStrategy, prefix: ) @groovy.transform.CompileStatic class HibernateCompositeIdentity extends Property implements HibernatePropertyIdentity
Represents a composite identity, equivalent to Hibernate
| Type | Name and description |
|---|---|
java.lang.Class |
compositeClassThe composite id class |
NaturalId |
naturalThe natural id definition |
java.lang.String[] |
propertyNamesThe property names that make up the custom identity |
| Properties inherited from class | Properties |
|---|---|
class Property |
accessType, auditMetadataType, cascade, cascadeValidate, cascades, derived, enumType, enumType, fetchStrategy, formula, generator, inList, index, lazy, lazy, max, maxSize, min, minSize, name, nullable, orphanRemoval, reference, scale, storedAs, targetName, unique |
| Constructor and description |
|---|
HibernateCompositeIdentity() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
HibernatePersistentProperty[] |
getHibernateProperties(GrailsHibernatePersistentEntity domainClass)
|
|
HibernateCompositeIdentity |
naturalId(groovy.lang.Closure naturalIdDef)Define the natural id |
| Methods inherited from class | Name |
|---|---|
class Property |
clone, configureExisting, configureExisting, fetch, fetch, getEnumType, getEnumTypeObject, getLazy, getName, getUniquenessGroup, isLazy, isUnique, isUniqueWithinGroup, name, setEnumType, setEnumType, setFetch, setLazy, setName, setRange, setSize, setUnique, setUnique, setUnique, setUniquenessGroup, unique, unique, unique |
The composite id class
The natural id definition
The property names that make up the custom identity
domainClass - The domain classDefine the natural id
naturalIdDef - The callable