i have a generic DAO which uses the getHibernateTemplate().saveOrUpdate() to save objects to my sql server db.
after saving, i need to get a handle on the id that was generated... but how!?
I KNOW this is easy!!!
thanks,
~plucas
i have a generic DAO which uses the getHibernateTemplate().saveOrUpdate() to save objects to my sql server db.
after saving, i need to get a handle on the id that was generated... but how!?
I KNOW this is easy!!!
thanks,
~plucas
nevermind - i am dumb.
the object is automatically reloaded after saving.... thus if it had an empty id before the save, it'll have an assigned id after the save....
my test was wrong, not my function!!