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 * Marks a boolean property on a @Draftable bean that indicates if the bean instance is a 'draft' or 'live' bean. 010 * The property is transient and has no underlying DB column. 011 * <p> 012 * For beans returned from an <code>asDraft()</code> query this property will be set to true. 013 * </p> 014 */ 015@Retention(RetentionPolicy.RUNTIME) 016@Target(ElementType.FIELD) 017public @interface Draft { 018 019}