Tutorialspoint examples

Learn java tutorial with examples for beginners online

JPA Embeddable annotation


It is used to define a class whose instances are stored as an intrinsic part of an owning entity and share the identity of the entity. Each of the persistent properties or fields of the embedded object is mapped to the database table for the entity.

Example:

@Embeddable public class Zipcode {
       protected String zip;
       protected String plusFour;
}

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