JPA Transient annotation

It is used to annotate a property or field of an entity class, mapped superclass, or embeddable class which is not persistent.

Example:

@Entity
public class Employee {
        @Id int id;
        @Transient String testField;
        ...
}

In case of above example, testField property will not be persist.