Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

What are the different types of relationships in JPA?

Pragya Keshap answered on March 1, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • one to many Implementing With a Join Table jpa
  • How do you map relationships in JPA?
  • How do you define Many to Many Mapping in JPA?

  • What are the different types of relationships in JPA?

    0

    JPA Relationship Types

    OneToOne - A unique reference from one object to another, inverse of a OneToOne.

    ManyToOne - A reference from one object to another, inverse of a OneToMany.

    OneToMany - A Collection or Map of objects, inverse of a ManyToOne.

    ManyToMany - A Collection or Map of objects, inverse of a ManyToMany.

    Embedded - A reference to a object that shares the same table of the parent.

    ElementCollection - JPA 2.0, a Collection or Map of Basic or Embeddable objects, stored in a separate table. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 01 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.