Hi,
I'm wondering if two attached/managed entities obtained from the same persistence context in two different ways are guaranteed to be equal by referential identity?
For example:
Let A and B be related.
A a = (A)em.find(...); B b = (B)em.find(B.class, a.getB().getId()); assert(b.equals(a.getB()); assert(b == a.getB());