stef (1) [Avatar] Offline
I'v got two Classes A and B in a many-to-many relation. The relation is mapped with a mapping class A_B. I do not have a stable business key on that class. How do I define equals and hashCode in this case?
I think it's not a good idea to first compare A and if equal compare B, because this would require A and B beeing fetched.
Thanks for any help, Stefan