Hi,
just a simple beginner question, but I do not seem to find it in the
docs (or maybe I'm too tired and reading over it every time after
trying the last 24hrs to get hibernate working (still failing btw, so
no sleep for me yet)).
The Q is:
after you do save/saveOrUpdate, is a newly generated record's
key retrieved into the pojo?
for instance:
table:
my_id: integer auto_increment pk
my_value: varchar(50)
when you do new:
myTable mt = new myTable();
mt.setMyValue('ZZZZzzzzzzzz');
sess.flush();
sess.save(mt);
tx.commit();
would the value that is set in my_id by the database then be
accessible in the mt object, or is it not retrieved?
thnx,
Dimitri Smits
|