diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/DefaultTrackingModifiedTypesRevisionEntity.java b/hibernate-envers/src/main/java/org/hibernate/envers/DefaultTrackingModifiedTypesRevisionEntity.java index 5abd1ede24..b2e98012fe 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/DefaultTrackingModifiedTypesRevisionEntity.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/DefaultTrackingModifiedTypesRevisionEntity.java @@ -9,12 +9,8 @@ import java.util.Set; /** * Extension of {@link DefaultRevisionEntity} that allows tracking entity types changed in each revision. This revision - * entity is implicitly used when one of the following conditions is satisfied: - * + * entity is implicitly used when org.hibernate.envers.track_entities_changed_in_revision parameter + * is set to true. * @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com) */ @MappedSuperclass @@ -54,6 +50,6 @@ public class DefaultTrackingModifiedTypesRevisionEntity extends DefaultRevisionE } public String toString() { - return "DefaultTrackingModifiedTypesRevisionEntity(" + super.toString() + ", modifiedEntityTypes = " + modifiedEntityTypes.toString() + ")"; + return "DefaultTrackingModifiedTypesRevisionEntity(" + super.toString() + ", modifiedEntityTypes = " + modifiedEntityTypes + ")"; } } diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/ModifiedEntityTypes.java b/hibernate-envers/src/main/java/org/hibernate/envers/ModifiedEntityTypes.java index 6988b63a4b..1c8eb333c9 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/ModifiedEntityTypes.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/ModifiedEntityTypes.java @@ -6,7 +6,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Marks a property which will hold the collection of entity names modified during each revision. + * Marks a property which will hold the collection of entity class names modified during each revision. * This annotation expects field of {@literal Set} type. * @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com) */ diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/configuration/RevisionInfoConfiguration.java b/hibernate-envers/src/main/java/org/hibernate/envers/configuration/RevisionInfoConfiguration.java index d8cbd3ffda..0106fe2426 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/configuration/RevisionInfoConfiguration.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/configuration/RevisionInfoConfiguration.java @@ -45,7 +45,12 @@ import org.hibernate.envers.RevisionTimestamp; import org.hibernate.envers.configuration.metadata.AuditTableData; import org.hibernate.envers.configuration.metadata.MetadataTools; import org.hibernate.envers.entities.PropertyData; -import org.hibernate.envers.revisioninfo.*; +import org.hibernate.envers.revisioninfo.DefaultRevisionInfoGenerator; +import org.hibernate.envers.revisioninfo.DefaultTrackingModifiedTypesRevisionInfoGenerator; +import org.hibernate.envers.revisioninfo.ModifiedEntityTypesReader; +import org.hibernate.envers.revisioninfo.RevisionInfoGenerator; +import org.hibernate.envers.revisioninfo.RevisionInfoNumberReader; +import org.hibernate.envers.revisioninfo.RevisionInfoQueryCreator; import org.hibernate.envers.tools.MutableBoolean; import org.hibernate.mapping.PersistentClass; import org.hibernate.type.LongType; @@ -101,7 +106,7 @@ public class RevisionInfoConfiguration { } /** - * Generates mapping that represents a set of strings.
+ * Generates mapping that represents a set of primitive types.
* * <set name="propertyName" table="joinTableName" cascade="persist, delete" lazy="false" fetch="join">
*    <key column="joinTablePrimaryKeyColumnName" />
@@ -209,7 +214,7 @@ public class RevisionInfoConfiguration { modifiedEntityTypesData = new PropertyData(property.getName(), property.getName(), accessType, null); modifiedEntityTypesFound.set(); } else { - throw new MappingException("The field annotated with @ModifiedEntityTypes must be of type Set."); + throw new MappingException("The field annotated with @ModifiedEntityTypes must be of Set type."); } } } diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java b/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java index 992da4eaaa..595d3bbb17 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/query/AuditQueryCreator.java @@ -24,7 +24,6 @@ package org.hibernate.envers.query; import static org.hibernate.envers.tools.ArgumentsTools.checkNotNull; import static org.hibernate.envers.tools.ArgumentsTools.checkPositive; - import org.hibernate.envers.configuration.AuditConfiguration; import org.hibernate.envers.query.impl.EntitiesModifiedAtRevisionQuery; import org.hibernate.envers.query.impl.EntitiesAtRevisionQuery; diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/revisioninfo/DefaultTrackingModifiedTypesRevisionInfoGenerator.java b/hibernate-envers/src/main/java/org/hibernate/envers/revisioninfo/DefaultTrackingModifiedTypesRevisionInfoGenerator.java index bd8a62599e..178e4c2180 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/revisioninfo/DefaultTrackingModifiedTypesRevisionInfoGenerator.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/revisioninfo/DefaultTrackingModifiedTypesRevisionInfoGenerator.java @@ -14,7 +14,7 @@ import java.util.HashSet; import java.util.Set; /** - * Automatically adds entity class names that have been changed during current revision to revision entity. + * Automatically adds entity class names, that have been changed during current revision, to revision entity. * @see ModifiedEntityTypes * @see DefaultTrackingModifiedTypesRevisionEntity * @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com) diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/synchronization/work/ModWorkUnit.java b/hibernate-envers/src/main/java/org/hibernate/envers/synchronization/work/ModWorkUnit.java index a6cb6b626e..b972b3e024 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/synchronization/work/ModWorkUnit.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/synchronization/work/ModWorkUnit.java @@ -23,8 +23,6 @@ */ package org.hibernate.envers.synchronization.work; import java.io.Serializable; -import java.util.Arrays; -import java.util.Collections; import java.util.HashMap; import java.util.Map; import org.hibernate.engine.SessionImplementor;