HHH-11634 : Change test to reproduce issue

This commit is contained in:
Gail Badner 2018-01-25 20:55:47 -08:00
parent 06b105e100
commit f1eb8672d7
1 changed files with 5 additions and 4 deletions

View File

@ -61,13 +61,14 @@ public class InsertOrderingDuplicateTest
Session session = openSession(); Session session = openSession();
session.getTransaction().begin(); session.getTransaction().begin();
{ {
SaleDocumentSummary saleDocumentsummary = new SaleDocumentSummary();
session.persist(saleDocumentsummary);
SaleDocumentItem saleDocumentItem = new SaleDocumentItem(); SaleDocumentItem saleDocumentItem = new SaleDocumentItem();
saleDocumentsummary.addItem( saleDocumentItem );
session.persist( saleDocumentItem ); session.persist( saleDocumentItem );
SaleDocumentSummary saleDocumentsummary = new SaleDocumentSummary();
session.persist(saleDocumentsummary );
saleDocumentsummary.addItem( saleDocumentItem );
Product product = new Product(); Product product = new Product();
session.persist(product); session.persist(product);
saleDocumentItem.setProduct(product); saleDocumentItem.setProduct(product);