Tutorialspoint examples

Learn java tutorial with examples for beginners online

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.

Posted in JPA   
Download tutorialspointexamples Android App
Copyright © 2018 Tutorialspoint examples DMCA.com Protection Status