CodesJava

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.

Example:

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

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

Posted in JPA   


Copyright © 2018 CodesJava DMCA.com Protection Status SiteMap