This is the state of things in connection with hashCode, update and object comparison:
And yet the funny thing is it does affect the other fact:
if you run this without the hashCode and equals method, it works fine, but
if you run it with hashCode and equals overriden, the second rule won't be
executed.
You mentionned before the usual rules for hashCode and equals, what are they
appart from equals=>equal hashCodes? I don't understand why this works in a
case and not in the other, so maybe I'm missing something here?
Thanks,
--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Drools-use-of-hashCode-tp3090455p3095159.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users