|
|
|||||
|
|
|||||
|
|
Difference between Entity State and Post State of Entity Row EntityImpl has two methods: public byte getEntityState() The first one returns the entity-state (aka transaction state or effective state), while the second one returns the post-state. The difference between post-state and entity-state is this. Post state So, after a post, the post-state may go to UNMODIFIED but entity-state row = vo.first(); // read an EO in from DB. Both states row.setAttribute("SomeAttr", someValue); am.getTransaction().postChanges(); am.getTransaction().commit();
|