hibernate需要注意的点

1.需要用Hibernate做实体的类(@Entity)需要在配置文件中配置对应的包(例如:spring/appContext-hibernate.xml)。

 

2.hibernateTemplate中的update(Object object),Delete(Object object)。

(1)object是放在缓存中的,可以取得对象所对应的主键。

(2)依赖于主键对object进行update或者delete操作。

posted @ 2016-03-01 21:19  知行-zhixing  阅读(212)  评论(0编辑  收藏  举报