Class EntityClassMetadata<T>
java.lang.Object
com.vaadin.featurepack.data.jpacontainer.metadata.ClassMetadata<T>
com.vaadin.featurepack.data.jpacontainer.metadata.EntityClassMetadata<T>
- All Implemented Interfaces:
Serializable
An extended version of
ClassMetadata that provides additional
information about classes annotated with the Entity annotation.- Since:
- 1.0
- Author:
- Petter Holmström (Vaadin Ltd)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanThe name of the entity.Gets the identifier property, if it exists.Gets the version property, if it exists.booleanIf the entity has an embedded identifier.inthashCode()booleanIf the entity has an identifier property or not.booleanIf the entity has a version property or not.Methods inherited from class com.vaadin.featurepack.data.jpacontainer.metadata.ClassMetadata
getGetterMethod, getMappedClass, getPersistentProperties, getPersistentPropertyNames, getProperties, getProperty, getPropertyNames, getPropertyValue, getPropertyValue, getSetterMethod, setPropertyValue, setPropertyValue
-
Method Details
-
getEntityName
The name of the entity. If no explicit entity name has been given, this is the simple class name. -
hasVersionProperty
public boolean hasVersionProperty()If the entity has a version property or not.- See Also:
-
getVersionProperty
Gets the version property, if it exists.- Returns:
- the version property metadata, or null if not available.
- See Also:
-
hasIdentifierProperty
public boolean hasIdentifierProperty()If the entity has an identifier property or not.- See Also:
-
getIdentifierProperty
Gets the identifier property, if it exists. IfhasEmbeddedIdentifier()returns true, this property is the embedded identifier.- Returns:
- the identifier property metadata, or null if not available.
- See Also:
-
hasEmbeddedIdentifier
public boolean hasEmbeddedIdentifier()If the entity has an embedded identifier. This property cannot be true unlesshasIdentifierProperty()also returns true. -
equals
- Overrides:
equalsin classClassMetadata<T>
-
hashCode
public int hashCode()- Overrides:
hashCodein classClassMetadata<T>
-