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