看一下Hibernate的API:public Serializable save(Object object)
throws HibernateExceptionPersist the given transient instance, first assigning a generated identifier. (Or using the current value of the identifier property if the assigned generator is used.) This operation cascades to associated instances if the association is mapped with cascade="save-update". Parameters:
object - a transient instance of a persistent class
Returns:
the generated identifier
Throws:
HibernateExceptionsave方法返回值就是。
throws HibernateExceptionPersist the given transient instance, first assigning a generated identifier. (Or using the current value of the identifier property if the assigned generator is used.) This operation cascades to associated instances if the association is mapped with cascade="save-update". Parameters:
object - a transient instance of a persistent class
Returns:
the generated identifier
Throws:
HibernateExceptionsave方法返回值就是。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货