Hibernate中Session.save()方法的返回值是什么
public Serializable save(Object object)
Parameters:
object - a transient instance of a persistent class
Returns:
the generated identifier
Throws:
HibernateException
getHibernateTemplate().save(entity);
entity.getId();
类似:
getHibernateTemplate().save(user);
user.getId();
posted on 2015-03-18 20:28 nickTimer 阅读(1348) 评论(0) 编辑 收藏 举报