From edd5bed0749232be37daff0c5c75d1b41c161af0 Mon Sep 17 00:00:00 2001 From: Adam Warski Date: Fri, 11 Dec 2009 07:43:34 +0000 Subject: [PATCH] - Lists also can be the inverse side of bidirectional one-to-many relationships git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18204 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../configuration/metadata/CollectionMetadataGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envers/src/main/java/org/hibernate/envers/configuration/metadata/CollectionMetadataGenerator.java b/envers/src/main/java/org/hibernate/envers/configuration/metadata/CollectionMetadataGenerator.java index 755ab6ba6e..dd440b1e60 100644 --- a/envers/src/main/java/org/hibernate/envers/configuration/metadata/CollectionMetadataGenerator.java +++ b/envers/src/main/java/org/hibernate/envers/configuration/metadata/CollectionMetadataGenerator.java @@ -145,7 +145,7 @@ public final class CollectionMetadataGenerator { 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();