|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.ejb.metamodel.MetamodelImpl
public class MetamodelImpl
Hibernate implementation of the JPA Metamodel
contract.
Method Summary | ||
---|---|---|
static MetamodelImpl |
buildMetamodel(Iterator<PersistentClass> persistentClasses,
SessionFactoryImplementor sessionFactory)
Deprecated. use buildMetamodel(java.util.Iterator,org.hibernate.engine.spi.SessionFactoryImplementor,boolean) instead |
|
static MetamodelImpl |
buildMetamodel(Iterator<PersistentClass> persistentClasses,
SessionFactoryImplementor sessionFactory,
boolean ignoreUnsupported)
Build the metamodel using the information from the collection of Hibernate PersistentClass models as well as the Hibernate SessionFactory . |
|
|
embeddable(Class<X> cls)
|
|
|
entity(Class<X> cls)
|
|
Set<EmbeddableType<?>> |
getEmbeddables()
|
|
Set<EntityType<?>> |
getEntities()
|
|
Set<ManagedType<?>> |
getManagedTypes()
|
|
|
managedType(Class<X> cls)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated public static MetamodelImpl buildMetamodel(Iterator<PersistentClass> persistentClasses, SessionFactoryImplementor sessionFactory)
buildMetamodel(java.util.Iterator,org.hibernate.engine.spi.SessionFactoryImplementor,boolean)
instead
PersistentClass
models as well as the Hibernate SessionFactory
.
persistentClasses
- Iterator over the Hibernate (config-time) metamodelsessionFactory
- The Hibernate session factory.
public static MetamodelImpl buildMetamodel(Iterator<PersistentClass> persistentClasses, SessionFactoryImplementor sessionFactory, boolean ignoreUnsupported)
PersistentClass
models as well as the Hibernate SessionFactory
.
persistentClasses
- Iterator over the Hibernate (config-time) metamodelsessionFactory
- The Hibernate session factory.ignoreUnsupported
- ignore unsupported/unknown annotations (like @Any)
public <X> EntityType<X> entity(Class<X> cls)
entity
in interface Metamodel
public <X> ManagedType<X> managedType(Class<X> cls)
managedType
in interface Metamodel
public <X> EmbeddableType<X> embeddable(Class<X> cls)
embeddable
in interface Metamodel
public Set<ManagedType<?>> getManagedTypes()
getManagedTypes
in interface Metamodel
public Set<EntityType<?>> getEntities()
getEntities
in interface Metamodel
public Set<EmbeddableType<?>> getEmbeddables()
getEmbeddables
in interface Metamodel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |