Easy learning with example program codes

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:
Posted in JPA   

Copyright © 2020 CodesJava Protection Status