阅读背景:

使用HSQL,Hibernate和Spring进行AutoIncrement测试

来源:互联网 

I have some integrtion tests that create an HSQL db from JPA entities. This all works well apart from the auto increment id. These seem to be stored between tests and not reset. For example if I add two items in test 1 then the id value in HSQL for these two rows is 1 and 2. In my set up I then destroy the db. In test 2 I add one item and the id is 3 and not back to 1. I am using Spring as the transaction manger and to wire up all my dependencies. Does any one know what could be causing this? I have some integrtion tests that create an HSQ




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

分享到: