看一下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方法返回值就是。