由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How do I do flush in Spring service layer with hibernate?
相关主题
问一个Collection Update的问题j2ee现在流行什么?
问个多线程问题ask a spring framework question
java class definition and implementationJAVA技术更新太快了!
About Hibernate.Net developer doing Java
想自学J2EEany tool can automatically generate mapping xml file of hibernate?
Hibernate queryDo I need to implement equals and hashCode in domain object
hibernate求助Hibernate in Eclipse
Questions on EJB3 Persistence/Hibernatedefault value in hibernate?
相关话题的讨论汇总
话题: spring话题: flush话题: do话题: hibernate话题: layer
进入Java版参与讨论
1 (共1页)
g*****g
发帖数: 34805
1
The thing is that under some circumstance, I have to delete a user and
recreate a user with same email, and at the same time the email has unique
constraint. In a hibernate session, I can flush after deletion and before
creation, but how to do it in Spring service layer with declarative
transactions?
Specify the delete function with PROPOGATION_REQURIED_NEW ?
g*****g
发帖数: 34805
2
guess it doesn't matter, I made a flush in DAO and it's working fine.
A**o
发帖数: 1550
3
i just did the same with ibatis. :)

【在 g*****g 的大作中提到】
: guess it doesn't matter, I made a flush in DAO and it's working fine.
1 (共1页)
进入Java版参与讨论
相关主题
default value in hibernate?想自学J2EE
搞不懂为什么hibernate为什么这么流行?Hibernate query
一个读log以后的问题 spring + hibernatehibernate求助
web application 如何从数据库取数据?Questions on EJB3 Persistence/Hibernate
问一个Collection Update的问题j2ee现在流行什么?
问个多线程问题ask a spring framework question
java class definition and implementationJAVA技术更新太快了!
About Hibernate.Net developer doing Java
相关话题的讨论汇总
话题: spring话题: flush话题: do话题: hibernate话题: layer