Defect HC-20044

Avoid loading Order and Offer in OrderItem JPA entity to help avoid OptimisticLock exceptions

Software

Customer case Applies to Corrected in
CS0307744 V9.1.4.0 9.1.12.0

Observed behavior

When loading OrderItems, there are optimistic locking exceptions raised for Order and Offer entities, similar to the following:

Exception Description: The object [com.ibm.commerce.order.objects.OrderItem@42d313b0] cannot be updated because it has changed or been deleted since it was last read.

Expected behavior

There should be no exception, and data should be loaded in a sequence that avoids the issue.

Resolution

Completed