Annotation Type VirtualColumn


  • @Documented
    @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface VirtualColumn
    This annotation should be used to mark computed fields.

    For example:

     @Entity
     public class Contact extends Model {
            ...
            private String firstName;
            private String lastName;
            ...
            ...
            @VirtualColumn
            public String getFullName() {
                    return firstName + " " + lastName;
            }
            ...
     }