Class QEntity
java.lang.Object
com.peterphi.std.guice.hibernate.webquery.impl.QEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()getCommonSubclass(List<String> discriminators) org.hibernate.graph.RootGraphgetDefaultGraph(org.hibernate.Session session) Build or return the default Entity Graph that represents defaultExpandprotected voidClass<?>javax.persistence.metamodel.EntityType<?>getName()getProperty(String name) getRelation(String name) getSubEntity(String discriminator) booleanhasNonEntityRelation(String name) booleanhasProperty(String name) booleanhasRelation(String name) protected booleanisEagerFetch(javax.persistence.metamodel.Attribute<?, ?> attribute) booleanReturn true if the underlying entity class is abstractbooleanCreate a new instance of this entity, setting only the ID fieldvoidparseEmbeddable(QEntityFactory entityFactory, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, String prefix, javax.persistence.metamodel.EmbeddableType<?> type) Parse an @EmbeddabletoString()
-
Constructor Details
-
QEntity
-
-
Method Details
-
getEntityClass
-
getMetamodelEntity
public javax.persistence.metamodel.EntityType<?> getMetamodelEntity() -
parseEmbeddable
public void parseEmbeddable(QEntityFactory entityFactory, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, String prefix, javax.persistence.metamodel.EmbeddableType<?> type) Parse an @Embeddable- Parameters:
entityFactory-sessionFactory-prefix-type-
-
isEagerFetch
protected boolean isEagerFetch(javax.persistence.metamodel.Attribute<?, ?> attribute) -
getEagerFetch
-
getEagerFetch
-
getName
-
getDiscriminatorValue
-
getPropertyNames
-
getRelationNames
-
hasProperty
-
hasRelation
-
hasNonEntityRelation
-
isNonEntityRelationCollection
-
getIdPropertyName
-
newInstanceWithId
Create a new instance of this entity, setting only the ID field- Parameters:
id-- Returns:
-
getProperty
-
getRelation
-
getSubEntities
-
encode
-
isEntityClassAbstract
public boolean isEntityClassAbstract()Return true if the underlying entity class is abstract- Returns:
-
toString
-
getSubEntity
-
getCommonSubclass
-
getDefaultGraph
public org.hibernate.graph.RootGraph getDefaultGraph(org.hibernate.Session session) Build or return the default Entity Graph that represents defaultExpand- Parameters:
session-- Returns:
-