org.kie.api.definition.type

## Annotation Type Key

-     @Retention(value=RUNTIME)
       @Target(value=FIELD)
      public @interface Key

  Annotation used to declare that a field is a key for the class it belongs to and then it will be used to calculate the equals/hashCode methods of the class itself. Works for concrete classes on fields. Methods on classes or interfaces is not yet supported.

Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.