I have a standard spring/jpa/hibernate setup. A service method with @Transactional that uses two different DAOs with each their own EntityManager instance injected.
When querying, what is ultimately the same entity (directly and indirectly retrieved), they are represented as different objects, even though for the same hibernate session (transaction) they should be the same object.
So are my DAOs using different hibernate sessions, or...?