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)
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.
|
EntityTypeImpl |
getEntityTypeByName(String entityName) |
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(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)
Metamodel
public <X> ManagedType<X> managedType(Class<X> cls)
Metamodel
managedType
in interface Metamodel
cls
- the type of the represented managed classpublic <X> EmbeddableType<X> embeddable(Class<X> cls)
Metamodel
embeddable
in interface Metamodel
cls
- the type of the represented embeddable classpublic Set<ManagedType<?>> getManagedTypes()
Metamodel
getManagedTypes
in interface Metamodel
public Set<EntityType<?>> getEntities()
Metamodel
getEntities
in interface Metamodel
public Set<EmbeddableType<?>> getEmbeddables()
Metamodel
getEmbeddables
in interface Metamodel
public EntityTypeImpl getEntityTypeByName(String entityName)
Copyright © 2017 JBoss by Red Hat. All rights reserved.