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
ConstructorsModifierConstructorDescriptionprotectedNiceFieldMetamodel(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, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getFieldModelin interfaceFieldMetamodel
-
getSqlType
public int getSqlType()- Specified by:
getSqlTypein interfaceFieldMetamodel- Returns:
- The SQL type that is expected by the hibernate type which is bound to this field
- See Also:
-