interface GormEntityTraitProvider
Provides the implementation to use for the GormEntity trait
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Class<?> |
getDefaultIdentityType()The identity type injected into an entity mapped with this implementation when the entity does not declare an id of its own, and the build has opted into native identity types with
grails { gorm { defaultIdType = 'native' }}. |
|
abstract java.lang.Class |
getEntityTrait() |
|
abstract boolean |
isAvailable()
|
The identity type injected into an entity mapped with this implementation when the entity does
not declare an id of its own, and the build has opted into native identity types with
grails { gorm { defaultIdType = 'native' }}.
Defaults to Long, which is what every entity is given when the build has not opted
in. An implementation whose stores generate identifiers of another type overrides this - GORM
for MongoDB returns String, because a Mongo ObjectId is generated for a String
id and handed back as its hexadecimal form, with no sequence collection involved.
null