entity.java

来自「hibernate方便的操作数据库相当不错的 请各位下载看看啊」· Java 代码 · 共 32 行

JAVA
32
字号
//$Id: Entity.java,v 1.1 2005/02/13 16:50:54 epbernard Exp $package org.hibernate.annotations;import static java.lang.annotation.ElementType.TYPE;import static java.lang.annotation.RetentionPolicy.RUNTIME;import java.lang.annotation.Target;import java.lang.annotation.Retention;/** * Extends {@link javax.ejb.Entity} with Hibernate features * @author Emmanuel Bernard */@Target(TYPE) @Retention(RUNTIME)public @interface Entity {	/** Is this entity mutable (read only) or not */	boolean mutable() default true;    /** Needed column only in SQL on insert */	boolean dynamicInsert() default false;	/** Needed column only in SQL on update */	boolean dynamicUpdate() default false;	/** Do a select to retrieve the entity before any potential update */	boolean selectBeforeUpdate() default false;	/** polymorphism strategy for this entity */	PolymorphismType polymorphism() default PolymorphismType.IMPLICIT;	/** persister of this entity, default is hibernate internal one */	String persister() default "";    /** optimistic locking strategy */	OptimisticLockType optimisticLock() default OptimisticLockType.VERSION;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?