이 콘텐츠는 선택한 언어로 제공되지 않습니다.
10.21. @key Declaration Example
This is an example of @key declarations for a type. JBoss Rules will generate equals() and hashCode() methods that will check the firstName and lastName attributes to determine if two instances of Person are equal to each other. It will not check the age attribute. It will also generate a constructor taking firstName and lastName as parameters: