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.


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

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

Please follow and like us:
Content Protection by