HHH-11634 : Change test to reproduce issue
This commit is contained in:
parent
06b105e100
commit
f1eb8672d7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue