Probably a simple answer for someone who's been using ObjectDB for awhile:
I'm reading objects from the database outside a transaction (inside doesn't seem to matter).
First cycle of doEdit and then doCancelEdit works fine.
Second time I doEdit produces the error "Attempt to lock a non entity object"
session.rollback() is somehow causing the problem (found through debugging)
Is this enough information for someone to suggest what might be happening and how to fix it?
public void doEdit() { try { session.beginTransaction(); session.lock(subjectJList.getSelectedValue(), LockModeType.PESSIMISTIC_WRITE); . . } //doEdit //----------------------------------------------------------- public void doCancelEdit() { try { session.rollback(); . . . } //doCancelEdit ------------------------------------------------------------- Attempt to lock a non entity object