读书人

Hibernate的数据交付顺序

发布时间: 2012-10-26 10:30:59 作者: rapoo

Hibernate的数据提交顺序
1.插入
2.更新
3.集合删除
4.集合更新
5.集合创建
6.删除

/** * Perform all currently queued actions. * * @throws HibernateException error executing queued actions. */public void executeActions() throws HibernateException {executeActions( insertions );executeActions( updates );executeActions( collectionRemovals );executeActions( collectionUpdates );executeActions( collectionCreations );executeActions( deletions );}

读书人网 >软件架构设计

热点推荐