Class NiceFieldMetamodel
java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.metamodel.AbstractPropertyMetamodel
ch.tocco.nice2.persist.core.impl.hibernate.metamodel.NiceFieldMetamodel
- All Implemented Interfaces:
FieldMetamodel
,PropertyMetamodel
Provides extensions of the
FieldModel
which are not available through the JPA datamodel.-
Field Summary
Fields inherited from class ch.tocco.nice2.persist.core.impl.hibernate.metamodel.AbstractPropertyMetamodel
entityType, property
-
Constructor Summary
ModifierConstructorDescriptionprotected
NiceFieldMetamodel
(jakarta.persistence.metamodel.EntityType<?> entityType, jakarta.persistence.metamodel.Attribute<?, ?> property, FieldModel fieldModel, int sqlType) -
Method Summary
Methods inherited from class ch.tocco.nice2.persist.core.impl.hibernate.metamodel.AbstractPropertyMetamodel
getName, getType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.model.entity.api.metamodel.PropertyMetamodel
getName, getType
-
Constructor Details
-
NiceFieldMetamodel
protected NiceFieldMetamodel(jakarta.persistence.metamodel.EntityType<?> entityType, jakarta.persistence.metamodel.Attribute<?, ?> property, FieldModel fieldModel, int sqlType)
-
-
Method Details
-
getFieldModel
- Specified by:
getFieldModel
in interfaceFieldMetamodel
-
getSqlType
public int getSqlType()- Specified by:
getSqlType
in interfaceFieldMetamodel
- Returns:
- The SQL type that is expected by the hibernate type which is bound to this field
- See Also:
-