public class MetamodelImpl extends Object implements Metamodel, Serializable
Metamodel contract.| Modifier and Type | Method and Description |
|---|---|
static MetamodelImpl |
buildMetamodel(Iterator<PersistentClass> persistentClasses,
SessionFactoryImplementor sessionFactory)
Deprecated.
|
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. |
<X> EmbeddableType<X> |
embeddable(Class<X> cls)
Return the metamodel embeddable type representing the
embeddable class.
|
<X> EntityType<X> |
entity(Class<X> cls)
Return the metamodel entity type representing the entity.
|
Set<EmbeddableType<?>> |
getEmbeddables()
Return the metamodel embeddable types.
|
Set<EntityType<?>> |
getEntities()
Return the metamodel entity types.
|
Set<ManagedType<?>> |
getManagedTypes()
Return the metamodel managed types.
|
<X> ManagedType<X> |
managedType(Class<X> cls)
Return the metamodel managed type representing the
entity, mapped superclass, or embeddable class.
|
@Deprecated public static MetamodelImpl buildMetamodel(Iterator<PersistentClass> persistentClasses, SessionFactoryImplementor sessionFactory)
buildMetamodel(java.util.Iterator,org.hibernate.engine.spi.SessionFactoryImplementor,boolean) insteadPersistentClass 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)
public <X> ManagedType<X> managedType(Class<X> cls)
managedType in interface Metamodelcls - the type of the represented managed classpublic <X> EmbeddableType<X> embeddable(Class<X> cls)
embeddable in interface Metamodelcls - the type of the represented embeddable classpublic Set<ManagedType<?>> getManagedTypes()
getManagedTypes in interface Metamodelpublic Set<EntityType<?>> getEntities()
getEntities in interface Metamodelpublic Set<EmbeddableType<?>> getEmbeddables()
getEmbeddables in interface MetamodelCopyright © 2012 JBoss by Red Hat. All Rights Reserved.