Skip to content

Commit a9454a7

Browse files
Hernanadamw
authored andcommitted
Removing isEntityClassNotAudited() and isEntityNameNotAudited() method for later discussion.
1 parent b8c4784 commit a9454a7

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

envers/src/main/java/org/hibernate/envers/AuditReader.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -197,29 +197,6 @@ <T> Map<Number, T> findRevisions(Class<T> revisionEntityClass,
197197
*/
198198
boolean isEntityNameAudited(String entityName);
199199

200-
/**
201-
* Checks if the entityClass was configured to be a audited in a relation
202-
* with the targetAuditMode as NOT_AUDITED . Calling
203-
* isEntityNameNotAudited() with the string of the class name will return
204-
* the same value.
205-
*
206-
* @param entityClass
207-
* Class of the entity asking for
208-
* @Audit(targetAuditMode=...NOT_AUDITED) support
209-
* @return true if the entityClass is marked in a relation as NOT_AUDITED.
210-
*/
211-
boolean isEntityClassNotAudited(Class<?> entityClass);
212-
213-
/**
214-
* Checks if the entityName was configured be a audited in a relation
215-
* with the targetAuditMode as NOT_AUDITED .
216-
*
217-
* @param entityClass
218-
* Class of the entity asking for
219-
* @Audit(targetAuditMode=...NOT_AUDITED) support
220-
* @return true if the entityClass is marked in a relation as NOT_AUDITED.
221-
*/
222-
boolean isEntityNameNotAudited(String entityName);
223200

224201
/**
225202
*

envers/src/main/java/org/hibernate/envers/reader/AuditReaderImpl.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,6 @@ public boolean isEntityNameAudited(String entityName) {
267267
return (verCfg.getEntCfg().isVersioned(entityName));
268268
}
269269

270-
public boolean isEntityClassNotAudited(Class<?> entityClass) {
271-
return this.isEntityNameNotAudited(entityClass.getName());
272-
}
273-
274-
public boolean isEntityNameNotAudited(String entityName) {
275-
checkNotNull(entityName, "Entity name");
276-
checkSession();
277-
return (verCfg.getEntCfg().isNotAudited(entityName));
278-
}
279-
280270

281271
public String getEntityName(Object primaryKey, Number revision ,Object entity) throws HibernateException{
282272
checkNotNull(primaryKey, "Primary key");

0 commit comments

Comments
 (0)