Hi, I have a quick question based on the 2 classes below...
Code:
class Apple {
}
class Banana {
private Apple obj;
}
Within the same session, I retrieve an object of class A using the session's "get" method. Then I do a query-by-example for Banana's, using a Banana instance with "obj" set to the just retrieved A instance. The query returns the right Banana objects, but they all point to a different instance of class A (same A entitykey, but different JVM identity).
Is it possible to do a query so that the Banana objects reference the already loaded Apple object instead of a new instance?