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,12 +61,13 @@ public class InsertOrderingDuplicateTest
Session session = openSession(); Session session = openSession();
session.getTransaction().begin(); session.getTransaction().begin();
{ {
SaleDocumentItem saleDocumentItem = new SaleDocumentItem();
session.persist( saleDocumentItem );
SaleDocumentSummary saleDocumentsummary = new SaleDocumentSummary(); SaleDocumentSummary saleDocumentsummary = new SaleDocumentSummary();
session.persist(saleDocumentsummary ); session.persist(saleDocumentsummary );
SaleDocumentItem saleDocumentItem = new SaleDocumentItem();
saleDocumentsummary.addItem( saleDocumentItem ); saleDocumentsummary.addItem( saleDocumentItem );
session.persist( saleDocumentItem );
Product product = new Product(); Product product = new Product();
session.persist(product); session.persist(product);