Class QEntity
java.lang.Object
com.peterphi.std.guice.hibernate.webquery.impl.QEntity
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionencode()
getCommonSubclass
(List<String> discriminators) org.hibernate.graph.RootGraph
getDefaultGraph
(org.hibernate.Session session) Build or return the default Entity Graph that represents defaultExpandprotected void
Class<?>
javax.persistence.metamodel.EntityType<?>
getName()
getProperty
(String name) getRelation
(String name) getSubEntity
(String discriminator) boolean
hasNonEntityRelation
(String name) boolean
hasProperty
(String name) boolean
hasRelation
(String name) protected boolean
isEagerFetch
(javax.persistence.metamodel.Attribute<?, ?> attribute) boolean
Return true if the underlying entity class is abstractboolean
Create a new instance of this entity, setting only the ID fieldvoid
parseEmbeddable
(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:
-