@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface Transient
Example: @Entity public class Employee { @Id int id; @Transient User currentUser; ... }
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.