1 package org.hibernate.annotations; 3 4 import static java.lang.annotation.ElementType.TYPE ; 5 6 import static java.lang.annotation.RetentionPolicy.RUNTIME ; 7 8 import java.lang.annotation.Target ; 9 import java.lang.annotation.Retention ; 10 11 15 @Target (TYPE) @Retention (RUNTIME) 16 public @interface Entity { 17 18 boolean mutable() default true; 19 20 boolean dynamicInsert() default false; 21 22 boolean dynamicUpdate() default false; 23 24 boolean selectBeforeUpdate() default false; 25 26 PolymorphismType polymorphism() default PolymorphismType.IMPLICIT; 27 28 String persister() default ""; 29 30 OptimisticLockType optimisticLock() default OptimisticLockType.VERSION; 31 } 32 | Popular Tags |