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 * Used to indicate an entity bean that has 'draftable' support but it not a 'top level' 010 * (or root level) bean but instead child related to another @Draftable entity bean. 011 * <p> 012 * Relationships to @DraftableElements (@OneToMany, @ManyToMany etc) are automatically 013 * deemed to have Cascade.ALL for save and delete (as well as orphan removal mode). 014 * </p> 015 */ 016@Retention(RetentionPolicy.RUNTIME) 017@Target(ElementType.TYPE) 018public @interface DraftableElement { 019 020}