Hibernate几个常用方法官网释义 save、update、flush、load、merge、persist、delete(二)
cs(语义学) of this method are defined by JSR-220.
参数:
object - a detached instance with state to be copied
返回:
an updated persistent instance
---------------
------------------------------persist
void persist(Object object)
描述:
Make a transient instance persistent. This operation cascades to associated instances if the association is mapped with cascade="persist"
The semantics of this method are defined by JSR-220.
参数:
---------------
------------------------------delete
void delete(Object object)
描述:www.2cto.com
Remove a persistent instance from the datastore. The argument may be an instance associated with the receiving Session or a transient instance with an identifier associated with existing persistent state. This operation cascades to associated instances if the association is mapped with cascade="delete"
参数:
object - the instance to be removed