public class MetamodelImpl extends Object implements javax.persistence.metamodel.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> javax.persistence.metamodel.EmbeddableType<X> |
embeddable(Class<X> cls) |
<X> javax.persistence.metamodel.EntityType<X> |
entity(Class<X> cls) |
Set<javax.persistence.metamodel.EmbeddableType<?>> |
getEmbeddables() |
Set<javax.persistence.metamodel.EntityType<?>> |
getEntities() |
EntityTypeImpl |
getEntityTypeByName(String entityName) |
Set<javax.persistence.metamodel.ManagedType<?>> |
getManagedTypes() |
<X> javax.persistence.metamodel.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> javax.persistence.metamodel.EntityType<X> entity(Class<X> cls)
entity in interface javax.persistence.metamodel.Metamodelpublic <X> javax.persistence.metamodel.ManagedType<X> managedType(Class<X> cls)
managedType in interface javax.persistence.metamodel.Metamodelpublic <X> javax.persistence.metamodel.EmbeddableType<X> embeddable(Class<X> cls)
embeddable in interface javax.persistence.metamodel.Metamodelpublic Set<javax.persistence.metamodel.ManagedType<?>> getManagedTypes()
getManagedTypes in interface javax.persistence.metamodel.Metamodelpublic Set<javax.persistence.metamodel.EntityType<?>> getEntities()
getEntities in interface javax.persistence.metamodel.Metamodelpublic Set<javax.persistence.metamodel.EmbeddableType<?>> getEmbeddables()
getEmbeddables in interface javax.persistence.metamodel.Metamodelpublic EntityTypeImpl getEntityTypeByName(String entityName)
Copyright © 2016. All rights reserved.