getHibernateTemplate()中save 与 persist的异同?
还有merge,remove 与evict方法?摘抄别人的接口部分定义,这一方法的实现都是通过 调用org.springframework.orm.hibernate3.support.HibernateDaoSupport;的getHibernateTemplate()中同名方法实现的.
public Serializable save(PersistentEntity object) throws BBA96Exception;
public void persist(PersistentEntity object) throws BBA96Exception;
public void update(PersistentEntity object) throws BBA96Exception;
public void refresh(PersistentEntity object) throws BBA96Exception;
public void merge(PersistentEntity object) throws BBA96Exception;
public void saveOrUpdate(PersistentEntity object) throws BBA96Exception;
public void remove(PersistentEntity object) throws BBA96Exception;
public void evict(PersistentEntity object) throws BBA96Exception;
还有merge,remove 与evict方法?摘抄别人的接口部分定义,这一方法的实现都是通过 调用org.springframework.orm.hibernate3.support.HibernateDaoSupport;的getHibernateTemplate()中同名方法实现的.
public Serializable save(PersistentEntity object) throws BBA96Exception;
public void persist(PersistentEntity object) throws BBA96Exception;
public void update(PersistentEntity object) throws BBA96Exception;
public void refresh(PersistentEntity object) throws BBA96Exception;
public void merge(PersistentEntity object) throws BBA96Exception;
public void saveOrUpdate(PersistentEntity object) throws BBA96Exception;
public void remove(PersistentEntity object) throws BBA96Exception;
public void evict(PersistentEntity object) throws BBA96Exception;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货