I wonder how I can get the ID back after database manipulation by using HibernateTemplate.
I'm keep walking through the API but can't find the way.
Every helps will be thankful![]()
Max
I wonder how I can get the ID back after database manipulation by using HibernateTemplate.
I'm keep walking through the API but can't find the way.
Every helps will be thankful![]()
Max
as for the removed row id..Code:String key = (String)getHibernateTemplate().save(entity);
i don't know..
You are passing the entity to the delete method, so you know in advance the id. When using the save method you get the id returned, it's only actually a Serializable, not necessarily a String.
Jörg
Last edited by karldmoore; Aug 27th, 2007 at 04:31 PM.
Barracuda Networks SSL VPN Lead Developer
http://pramatr.wordpress.com
http://twitter.com/karldmoore
http://www.linkedin.com/in/karldmoore
Any postings are my own opinion, and should not be attributed to my employer or clients.