@@ -0,0 +1,588 @@
+package org.kie.api.definition.type;%0A%0Aimport java.lang.annotation.ElementType;%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0Aimport java.lang.annotation.Target;%0A%0A/**%0A *%0A * Annotation used to declare that a field is a key for the class it belongs to and then%0A * it will be used to calculate the equals/hashCode methods of the class itself.%0A *%0A * Works for concrete classes on fields. Methods on classes or interfaces is not yet supported.%0A *%0A */%0A@Retention(value = RetentionPolicy.RUNTIME)%0A@Target(value = ElementType.FIELD)%0Apublic @interface Key %7B%0A%7D%0A

add @Key annotation