Search in sources :

Example 6 with MappedSuperclass

use of org.hibernate.mapping.MappedSuperclass in project hibernate-orm by hibernate.

the class MetamodelImpl method handleUnusedMappedSuperclasses.

private static void handleUnusedMappedSuperclasses(MetadataContext context) {
    final Set<MappedSuperclass> unusedMappedSuperclasses = context.getUnusedMappedSuperclasses();
    if (!unusedMappedSuperclasses.isEmpty()) {
        for (MappedSuperclass mappedSuperclass : unusedMappedSuperclasses) {
            log.unusedMappedSuperclass(mappedSuperclass.getMappedClass().getName());
            locateOrBuildMappedsuperclassType(mappedSuperclass, context);
        }
    }
}
Also used : MappedSuperclass(org.hibernate.mapping.MappedSuperclass)

Aggregations

MappedSuperclass (org.hibernate.mapping.MappedSuperclass)6 PersistentClass (org.hibernate.mapping.PersistentClass)4 Iterator (java.util.Iterator)2 HashSet (java.util.HashSet)1 Attribute (javax.persistence.metamodel.Attribute)1 SingularAttribute (javax.persistence.metamodel.SingularAttribute)1 AssertionFailure (org.hibernate.annotations.common.AssertionFailure)1 XClass (org.hibernate.annotations.common.reflection.XClass)1 Property (org.hibernate.mapping.Property)1 Subclass (org.hibernate.mapping.Subclass)1