📄 immutable.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. @Immutable must be used on root entities only. * </p> * <p> * @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 + -