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,
Set<MappedSuperclass> mappedSuperclasses,
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) |
<X> EntityType<X> |
entity(Class<X> cls) |
Set<EmbeddableType<?>> |
getEmbeddables() |
Set<EntityType<?>> |
getEntities() |
EntityTypeImpl |
getEntityTypeByName(String entityName) |
Set<ManagedType<?>> |
getManagedTypes() |
<X> ManagedType<X> |
managedType(Class<X> cls) |
@Deprecated public static MetamodelImpl buildMetamodel(Iterator<PersistentClass> persistentClasses, SessionFactoryImplementor sessionFactory)
buildMetamodel(Iterator, Set, 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, Set<MappedSuperclass> mappedSuperclasses, SessionFactoryImplementor sessionFactory, boolean ignoreUnsupported)
PersistentClass
models as well as the Hibernate SessionFactory
.persistentClasses
- Iterator over the Hibernate (config-time) metamodelmappedSuperclasses
- All known MappedSuperclassessessionFactory
- 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 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
public EntityTypeImpl getEntityTypeByName(String entityName)
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.