⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 immutable.java

📁 Hibernate Annotations Sample
💻 JAVA
字号:
//$Id: Immutable.java 14801 2008-06-24 19:03:32Z hardy.ferentschik $package org.hibernate.annotations;import java.lang.annotation.*;/** * Mark an Entity or a Collection as immutable. No annotation means the element is mutable. * <p> * An immutable entity may not be updated by the application. Updates to an immutable * entity will be ignored, but no exception is thrown. &#064;Immutable  must be used on root entities only.  * </p> * <p> * &#064;Immutable placed on a collection makes the collection immutable, meaning additions and  * deletions to and from the collection are not allowed. A <i>HibernateException</i> is thrown in this case.  * </p> * * @author Emmanuel Bernard */@java.lang.annotation.Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})@Retention( RetentionPolicy.RUNTIME )public @interface Immutable {}

⌨️ 快捷键说明

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