Tina, <div><br></div><div>   No problem. That is one of the items I think it is missing in the docs. It just means that field will be considered on the generated equals() and hashcode() methods of the bean. Example:</div>
<div><br></div><div>declare Person</div><div>    firstName : String @key</div><div>    lastName : String @key</div><div>    address : Address</div><div>end</div><div><br></div><div>   The above example will generate a Person bean class and will consider first and last name as identifiers for the person. So, two instance with the same first and last name will generate the same hashcode and the equals method will return true when comparing them, even if the address is different. </div>
<div><br></div><div>   Edson<br><br><div class="gmail_quote">2010/8/9 Tina Vießmann <span dir="ltr">&lt;<a href="mailto:tviessmann@stud.hs-bremen.de">tviessmann@stud.hs-bremen.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I think I&#39;m to stupid to google, but I can&#39;t find an explanation what<br>
&#39;@key&#39; means.<br>
Can anyone please explain it to me or just give me a link?<br>
<br>
Sorry for the simple and stupid request and thank you for your help!<br>
<br>
Greetings<br>
Tina<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>
</blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>