Hi.
I'm having some problems with the state of some persistent objects. I've
looking for examples in Internet but all ODMG examples are pretty simple.
I'll show you an example of what I mean:
tx.begin(); // Begin transaction
MyObj o = new MyObj(); // A new MyObj instance is created and it gets
the correct ID (primary key)
db.makePersistent(o); // Make persistent
o.setWhatever("Value"); // Modify the object
db.deletePersistent(o); // Mark object to be deleted
tx.commit(); // Commit transaction
I think the persistence layer should do nothing since it's a new
persistent object and the last operation was to delete it. For whatever
reason, OJB realizes that it was modified and stores in the database,
although the modifications were done before marking it to be deleted.
I would like someone will explain that to me.
Thank you in advance.
Jose Maria
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
- ODMG States problem Jose Maria Lopez Lagunas
- Re: ODMG states problem Jose Maria Lopez Lagunas
- Re: ODMG states problem Thomas Mahler
- Re: ODMG states problem Thomas Mahler
