Skip to content

Commit

Permalink
HHH-4439 - Javadoc change
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-antoniak committed Jan 9, 2012
1 parent 05df3d8 commit 53b32e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* The {@code AuditingOverride} annotation is used to override the auditing
* behavior of a superclass or single property inherited from {@link MappedSuperclass}
* type, or inside an embedded component.
* type, or attribute inside an embedded component.
*
* @author Erik-Berndt Scheper
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void read() {
// Retrieve classes and properties that are explicitly marked for auditing process by any superclass
// of currently mapped entity or itself.
XClass clazz = persistentPropertiesSource.getXClass();
doReadOverrideAudited(clazz);
readAuditOverrides(clazz);

// Adding all properties from the given class.
addPropertiesFromClass(clazz);
Expand All @@ -105,7 +105,7 @@ public void read() {
* using {@link AuditOverride} annotation.
* @param clazz Class that is being processed. Currently mapped entity shall be passed during first invocation.
*/
private void doReadOverrideAudited(XClass clazz) {
private void readAuditOverrides(XClass clazz) {
/* TODO: Code to remove with @Audited.auditParents - start. */
Audited allClassAudited = clazz.getAnnotation(Audited.class);
if (allClassAudited != null && allClassAudited.auditParents().length > 0) {
Expand Down Expand Up @@ -157,7 +157,7 @@ private void doReadOverrideAudited(XClass clazz) {
}
XClass superclass = clazz.getSuperclass();
if (!clazz.isInterface() && !Object.class.getName().equals(superclass.getName())) {
doReadOverrideAudited(superclass);
readAuditOverrides(superclass);
}
}

Expand Down Expand Up @@ -239,10 +239,10 @@ private void createPropertiesGroupMapping(Property property) {
/**
* @param clazz Class which properties are currently being added.
* @return {@link Audited} annotation of specified class. If processed type hasn't been explicitly marked, method
* checks whether given class exists in {@code overriddenAuditedClasses} collection. In case of success,
* {@link Audited} configuration of currently mapped entity is returned (or the default if {@link Audited}
* applied on property level), otherwise {@code null}. If processed type exists in
* {@code overriddenNotAuditedClasses} collection, the result is also {@code null}.
* checks whether given class exists in {@link AuditedPropertiesReader#overriddenAuditedClasses} collection.
* In case of success, {@link Audited} configuration of currently mapped entity is returned, otherwise
* {@code null}. If processed type exists in {@link AuditedPropertiesReader#overriddenNotAuditedClasses}
* collection, the result is also {@code null}.
*/
private Audited computeAuditConfiguration(XClass clazz) {
Audited allClassAudited = clazz.getAnnotation(Audited.class);
Expand Down

0 comments on commit 53b32e9

Please sign in to comment.