I\'ve got an integration test of a DAO in which I use a shared EntityManager (via Spring, using SharedEntityManagerCreator). The test class is marked as @Transactional, as
No it does not. You should rely on object EQUALITY instead of IDENTITY anyway. Override the equals method.