Annotation Type EntityId


  • @Retention(RUNTIME)
    @Target({METHOD,FIELD})
    public @interface EntityId
    Marks a getter method or field as the unique local Id for an entity, the convention is to run toString on the return from the "getId" method or the value in the "id" field
    NOTE: This annotation should only be used once in a class, the getter method must take no arguments and return an object
    Author:
    Aaron Zeckoski (aaron@caret.cam.ac.uk)