Updating a fact does not affect any other fact containing a reference to that updated fact. Thus, father == $father isn't changed.

If, however, the Child object changed via the Father method were a fact, an update() of that Child fact would usually be required.

-W

On 21 June 2011 16:02, M. H. <hugues_81@hotmail.com> wrote:
Ok Thanks for your answer.

I just looked more closely, and actually it looks like what I was doing just
can't work this way: when I update the father in rule 1, then I can't join
it with its GdFather anymore without updating it too, am I right?
Or I would have to use eval(father==$father) instead of simply
father==$father which uses equals() and hashCode(), but then I'll lose all
the performance?


--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Drools-use-of-hashCode-tp3090455p3090757.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