阅读背景:

确保Hibernate持久性在junit测试中起作用

来源:互联网 

If I have a test method marked as @Transactional, and I save an entity to the DB at any point in time, I should be able to fetch the new stuff (with changes) on the very next line of code, even though the transaction will be then rolled back (the default behavior of transactional unit tests), right?If I have a test method marked as @Transactiona




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: