Updating a fact does not affect any other fact containing a reference to that updated fact. Thus, father == $father isn&#39;t changed.<br><br>If, however, the Child object changed via the Father method were a fact, an update() of that Child fact would usually be required.<br>
<br>-W<br><br><div class="gmail_quote">On 21 June 2011 16:02, M. H. <span dir="ltr">&lt;<a href="mailto:hugues_81@hotmail.com">hugues_81@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok Thanks for your answer.<br>
<br>
I just looked more closely, and actually it looks like what I was doing just<br>
can&#39;t work this way: when I update the father in rule 1, then I can&#39;t join<br>
it with its GdFather anymore without updating it too, am I right?<br>
Or I would have to use eval(father==$father) instead of simply<br>
father==$father which uses equals() and hashCode(), but then I&#39;ll lose all<br>
the performance?<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-Drools-use-of-hashCode-tp3090455p3090757.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-Drools-use-of-hashCode-tp3090455p3090757.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>