Annotation Type DocumentId


  • @Retention(RUNTIME)
    public @interface DocumentId
    Annotation to identify the primary key of a business type. Add this to the unique Id of your business object like so:
     public class SomeBusinessPojo {
        @DocumentId
        private String documentId;
        ... any custom fields and methods
        public String getDocumentId() {
           return documentId;
        }
        public void setDocumentId(String id) {
           this.documentId=id;
        }
     }
     

    Author:
    Niklas Schlimm