Skip to content

Commit 1478030

Browse files
HHH-13721 Getting duplicated entities with @onetomany and @ElementCollection
Co-authored-by: Marco Belladelli <[email protected]>
1 parent 849cc17 commit 1478030

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/mapping/access/ElementCollectionHHH13721Test.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ void hhh13721Test(SessionFactoryScope scope) {
8080
assertTrue( chapters.contains( "chapter3" ) );
8181
} );
8282
}
83-
83+
@AfterAll
84+
public void tearDown(SessionFactoryScope scope) {
85+
scope.getSessionFactory().getSchemaManager().truncateMappedObjects();
86+
}
8487
@Entity(name = "Author")
8588
public static class Author {
8689

0 commit comments

Comments
 (0)