Annotation Type Hidden


  • @Retention(RUNTIME)
    @Target({FIELD,METHOD})
    public @interface Hidden
    A hidden property has a meaning for the developer but not for the user.

    Applies to properties.

    The hidden properties are excluded when the automatic user interface is generated. However at Java code level they are present and fully functional. Even if you put it explicitly into a view the property will be shown in the user interface.
    Example:

      @Id  @Hidden
      @GeneratedValue(strategy=GenerationType.IDENTITY)
      private Integer oid; 
     
    Author:
    Javier Paniza