Search in sources :

Example 1 with ModificationStore

use of org.hibernate.envers.ModificationStore in project hibernate-orm by hibernate.

the class AnnotationsMetadataReader method getAuditData.

public ClassAuditingData getAuditData() {
    if (pc.getClassName() == null) {
        return auditData;
    }
    try {
        final XClass xclass = reflectionManager.classForName(pc.getClassName());
        final ModificationStore defaultStore = getDefaultAudited(xclass);
        if (defaultStore != null) {
            auditData.setDefaultAudited(true);
        }
        new AuditedPropertiesReader(defaultStore, new PersistentClassPropertiesSource(xclass), auditData, globalCfg, reflectionManager, "").read();
        addAuditTable(xclass);
        addAuditSecondaryTables(xclass);
    } catch (ClassLoadingException e) {
        throw new MappingException(e);
    }
    return auditData;
}
Also used : ClassLoadingException(org.hibernate.annotations.common.reflection.ClassLoadingException) ModificationStore(org.hibernate.envers.ModificationStore) XClass(org.hibernate.annotations.common.reflection.XClass) MappingException(org.hibernate.MappingException)

Aggregations

MappingException (org.hibernate.MappingException)1 ClassLoadingException (org.hibernate.annotations.common.reflection.ClassLoadingException)1 XClass (org.hibernate.annotations.common.reflection.XClass)1 ModificationStore (org.hibernate.envers.ModificationStore)1