Removing isEntityClassNotAudited() and isEntityNameNotAudited() method for later discussion.
This commit is contained in:
parent
b8c4784630
commit
a9454a7590
|
@ -197,29 +197,6 @@ public interface AuditReader {
|
|||
*/
|
||||
boolean isEntityNameAudited(String entityName);
|
||||
|
||||
/**
|
||||
* Checks if the entityClass was configured to be a audited in a relation
|
||||
* with the targetAuditMode as NOT_AUDITED . Calling
|
||||
* isEntityNameNotAudited() with the string of the class name will return
|
||||
* the same value.
|
||||
*
|
||||
* @param entityClass
|
||||
* Class of the entity asking for
|
||||
* @Audit(targetAuditMode=...NOT_AUDITED) support
|
||||
* @return true if the entityClass is marked in a relation as NOT_AUDITED.
|
||||
*/
|
||||
boolean isEntityClassNotAudited(Class<?> entityClass);
|
||||
|
||||
/**
|
||||
* Checks if the entityName was configured be a audited in a relation
|
||||
* with the targetAuditMode as NOT_AUDITED .
|
||||
*
|
||||
* @param entityClass
|
||||
* Class of the entity asking for
|
||||
* @Audit(targetAuditMode=...NOT_AUDITED) support
|
||||
* @return true if the entityClass is marked in a relation as NOT_AUDITED.
|
||||
*/
|
||||
boolean isEntityNameNotAudited(String entityName);
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -267,16 +267,6 @@ public class AuditReaderImpl implements AuditReaderImplementor {
|
|||
return (verCfg.getEntCfg().isVersioned(entityName));
|
||||
}
|
||||
|
||||
public boolean isEntityClassNotAudited(Class<?> entityClass) {
|
||||
return this.isEntityNameNotAudited(entityClass.getName());
|
||||
}
|
||||
|
||||
public boolean isEntityNameNotAudited(String entityName) {
|
||||
checkNotNull(entityName, "Entity name");
|
||||
checkSession();
|
||||
return (verCfg.getEntCfg().isNotAudited(entityName));
|
||||
}
|
||||
|
||||
|
||||
public String getEntityName(Object primaryKey, Number revision ,Object entity) throws HibernateException{
|
||||
checkNotNull(primaryKey, "Primary key");
|
||||
|
|
Loading…
Reference in New Issue