HHH-5580 - Naming
This commit is contained in:
parent
1878b23850
commit
94590c5062
|
@ -9,11 +9,11 @@ import java.util.HashSet;
|
|||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Revision entity which {@code modifiedEntityTypes} field is manually populated by {@link CustomEntityTrackingRevisionListener}.
|
||||
* Revision entity which {@code modifiedEntityTypes} field is manually populated by {@link CustomTrackingRevisionListener}.
|
||||
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
||||
*/
|
||||
@Entity
|
||||
@RevisionEntity(CustomEntityTrackingRevisionListener.class)
|
||||
@RevisionEntity(CustomTrackingRevisionListener.class)
|
||||
public class CustomTrackingRevisionEntity {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
|
|
|
@ -8,7 +8,7 @@ import java.io.Serializable;
|
|||
/**
|
||||
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
||||
*/
|
||||
public class CustomEntityTrackingRevisionListener implements EntityTrackingRevisionListener {
|
||||
public class CustomTrackingRevisionListener implements EntityTrackingRevisionListener {
|
||||
@Override
|
||||
public void entityChanged(Class entityClass, String entityName, Serializable entityId, RevisionType revisionType,
|
||||
Object revisionEntity) {
|
|
@ -8,8 +8,8 @@ import org.hibernate.envers.test.AbstractEntityTest;
|
|||
import org.hibernate.envers.test.Priority;
|
||||
import org.hibernate.envers.test.entities.StrIntTestEntity;
|
||||
import org.hibernate.envers.test.entities.StrTestEntity;
|
||||
import org.hibernate.envers.test.entities.reventity.trackmodifiedentities.CustomEntityTrackingRevisionListener;
|
||||
import org.hibernate.envers.test.entities.reventity.trackmodifiedentities.CustomTrackingRevisionEntity;
|
||||
import org.hibernate.envers.test.entities.reventity.trackmodifiedentities.CustomTrackingRevisionListener;
|
||||
import org.hibernate.envers.test.entities.reventity.trackmodifiedentities.ModifiedEntityTypeEntity;
|
||||
import org.hibernate.envers.test.tools.TestTools;
|
||||
import org.junit.Test;
|
||||
|
@ -18,7 +18,7 @@ import javax.persistence.EntityManager;
|
|||
|
||||
/**
|
||||
* Tests proper behavior of entity listener that implements {@link EntityTrackingRevisionListener}
|
||||
* interface. {@link CustomEntityTrackingRevisionListener} shall be notified whenever an entity instance has been
|
||||
* interface. {@link CustomTrackingRevisionListener} shall be notified whenever an entity instance has been
|
||||
* added, modified or removed, so that changed entity type can be persisted.
|
||||
* @author Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue