public class HibernateBasicEnumProperty extends HibernateBasicProperty implements HibernateEnumProperty
Hibernate basic collection element property whose element type is an enum. Created by HibernateMappingFactory.createBasicCollection when the collection's element type is an enum.
| Fields inherited from class | Fields |
|---|---|
class BasicWithMapping |
propertyMapping |
class AbstractPersistentProperty |
context, inherited, name, owner, type |
| Constructor and description |
|---|
HibernateBasicEnumProperty(GrailsHibernatePersistentEntity entity, MappingContext context, java.beans.PropertyDescriptor property) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.lang.Class<?> |
getEnumType() |
|
public Table |
getTable()For an enum collection element, the table to bind the element column against is the collection's join table rather than the owning entity's table. |
|
public boolean |
isCollectionElement() |
|
public boolean |
isEnumColumnNullable()A hasMany element column is always nullable, matching the non-enum sibling binding path. |
|
public java.lang.String |
resolveEnumColumnName(PersistentEntityNamingStrategy namingStrategy, ColumnNameForPropertyAndPathFetcher columnNameForPropertyAndPathFetcher, java.lang.String path) |
For an enum collection element, the table to bind the element column against is the
collection's join table rather than the owning entity's table. Before the collection
table has been assigned (e.g. while it is itself being computed), falls back to the
owning entity's table, matching the pre-collection-binding default. Scoped to the enum
subclass because only EnumTypeBinder
binds through getTable(); the non-enum element binding reads the collection
table directly.
A hasMany element column is always nullable, matching the non-enum sibling binding path.