Hello,
I don't know if I'm doing something wrong or it's a bug :)
//I have 2 transactions:
//1st
db.begin();
Note note = new Note();
User user = db.load(User.class, 222, AccessMode.ReadOnly);
note.setUser(user);
db.commit();
...
//2nd
db.begin();
//setting other note fields here and inserting into db
db.create(note)
db.commit();
And here new Note is being created but user field is not set... it's null in db
What should I do to make it work? Right now I made a workaround, in
second tx I'm reloading user object and it works. But maybe there is
some other solution to this?
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email