Annotation Type DbRelation


  • @Retention(RUNTIME)
    public @interface DbRelation
    Mark a getter or setter with this annotation to define it as a column in the database. DbPrimaryKey will have the same effect. If you mark a getter or setter as persistent both functions getter and setter must exist and be public. Fou boolenas the getter can also have a 'is...' notation.
    Author:
    mikehummel
    • Element Detail

      • sourceAttribute

        String sourceAttribute
        Default:
        ""
      • targetAttribute

        String targetAttribute
        Default:
        ""
      • target

        Class<?> target
        Default:
        java.lang.Class.class
      • orderBy

        String orderBy
        Default:
        ""
      • managed

        boolean managed
        Default:
        true
      • remove

        boolean remove
        Default:
        false