From f1eb8672d7913ca3f1e96cc8985bda4a4466068b Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Thu, 25 Jan 2018 20:55:47 -0800 Subject: [PATCH] HHH-11634 : Change test to reproduce issue --- .../test/insertordering/InsertOrderingDuplicateTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingDuplicateTest.java b/hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingDuplicateTest.java index cc37a7f8ff..9f6e8580c9 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingDuplicateTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingDuplicateTest.java @@ -61,13 +61,14 @@ public class InsertOrderingDuplicateTest Session session = openSession(); session.getTransaction().begin(); { - SaleDocumentSummary saleDocumentsummary = new SaleDocumentSummary(); - session.persist(saleDocumentsummary); - SaleDocumentItem saleDocumentItem = new SaleDocumentItem(); - saleDocumentsummary.addItem( saleDocumentItem ); session.persist( saleDocumentItem ); + SaleDocumentSummary saleDocumentsummary = new SaleDocumentSummary(); + session.persist(saleDocumentsummary ); + + saleDocumentsummary.addItem( saleDocumentItem ); + Product product = new Product(); session.persist(product); saleDocumentItem.setProduct(product);