Hi,
I have JPA objects which I need to intercept. Interceptor.onSave() method of works fine for my Order object. I can see the original values for persistent and non-persistent fields. My Order object has one to many relationship to OrderLineItem. However, non-persistent fields are not populated when Interceptor.onSave() method is called for OrderLineItem. FYI, persistence is initiated by calling entityManager.persist(order). It seems as though for JPA associations are loaded using some sort of proxy objects which do not keep the original state of the objects. If anyone has suggestions for workaround I would appreciate it.
|