Author: adamw
Date: 2008-07-04 03:04:46 -0400 (Fri, 04 Jul 2008)
New Revision: 90
Modified:
trunk/src/main/org/jboss/envers/event/VersionsEventListener.java
Log:
Fixing a bug with generating collection revisions - only the owning side is checked
Modified: trunk/src/main/org/jboss/envers/event/VersionsEventListener.java
===================================================================
--- trunk/src/main/org/jboss/envers/event/VersionsEventListener.java 2008-07-03 11:36:38
UTC (rev 89)
+++ trunk/src/main/org/jboss/envers/event/VersionsEventListener.java 2008-07-04 07:04:46
UTC (rev 90)
@@ -58,7 +58,7 @@
for (int i=0; i<propertyNames.length; i++) {
String propertyName = propertyNames[i];
RelationDescription relDesc = verCfg.getRelationDescription(entityName,
propertyName);
- if (relDesc != null && relDesc.bidirectional) {
+ if (relDesc != null && relDesc.bidirectional &&
relDesc.relationType == RelationDescription.RelationType.TO_ONE) {
// Checking for changes
Object oldValue = oldState == null ? null : oldState[i];
Object newValue = newState == null ? null : newState[i];
Show replies by date