001package com.avaje.ebean.annotation; 002 003import java.lang.annotation.ElementType; 004import java.lang.annotation.Retention; 005import java.lang.annotation.RetentionPolicy; 006import java.lang.annotation.Target; 007 008/** 009 * Specify that the property is stored in encrypted form. 010 */ 011@Target({ ElementType.FIELD, ElementType.METHOD }) 012@Retention(RetentionPolicy.RUNTIME) 013public @interface Encrypted { 014 015 /** 016 * When true try to use DB encryption rather than local java encryption. 017 */ 018 boolean dbEncryption() default true; 019 020 /** 021 * Used to specify the DB column length. 022 */ 023 int dbLength() default 0; 024}