Hi,
I have a Hibernate class which has a reasonably complicated implementation of equals()
. Is it possible to write a query that returns all instances of this class that have at least one other equal object, where equality is defined by the implementation of equals()
?
Update Evidently this is not possible. As an alternative, is it possible to retrieve all instances of a particular class that have equal property values. For example:
Get all instances of User that have the same name
Thanks, Don