I have entity with Set inside
class A {
public Set<B> b;
}
When I'm trying to compare two entities A I have a problem with how to compare Set b with Set b fields. hashCode and equals are overrided automatically but they didn't compare correctly. What should I do? How to compare correctly two sets without depending on realization?