I am trying to build a web application using Spring and Hibernate. I have an object which is being saved in the database (hibernateTemplate.SaveOrUpdate method) with an id generated by hibernate. My question is: how can I get the 开发者_运维百科automatically generated id ?
Use save to get the generated key back.
精彩评论