Author: adamw
Date: 2009-12-11 02:43:34 -0500 (Fri, 11 Dec 2009)
New Revision: 18204
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/configuration/metadata/CollectionMetadataGenerator.java
Log:
- Lists also can be the inverse side of bidirectional one-to-many relationships
Modified:
core/trunk/envers/src/main/java/org/hibernate/envers/configuration/metadata/CollectionMetadataGenerator.java
===================================================================
---
core/trunk/envers/src/main/java/org/hibernate/envers/configuration/metadata/CollectionMetadataGenerator.java 2009-12-11
07:17:36 UTC (rev 18203)
+++
core/trunk/envers/src/main/java/org/hibernate/envers/configuration/metadata/CollectionMetadataGenerator.java 2009-12-11
07:43:34 UTC (rev 18204)
@@ -145,7 +145,7 @@
void addCollection() {
Type type = propertyValue.getType();
- if ((type instanceof BagType || type instanceof SetType || type instanceof
MapType) &&
+ if ((type instanceof BagType || type instanceof SetType || type instanceof
MapType || type instanceof ListType) &&
(propertyValue.getElement() instanceof OneToMany) &&
(propertyValue.isInverse())) {
// A one-to-many relation mapped using @ManyToOne and
@OneToMany(mappedBy="...")
addOneToManyAttached();
Show replies by date