Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » JPA ManyToMany relationship in Oracle NoSql - @JoinTable(JPA ManyToMany relationship in Oracle NoSql - @JoinTable)
JPA ManyToMany relationship in Oracle NoSql - @JoinTable [message #1749871] Tue, 13 December 2016 13:07
Anurag Ambasta is currently offline Anurag AmbastaFriend
Messages: 2
Registered: December 2016
Junior Member
I am using JPA (eclipselink) to map two entities in Oracle NoSql DB having Many-to-Many relationship between them, what annotation do i use instead of @JoinTable annotation which is used in any relational db,

@JoinTable(name = "person_address", joinColumns =
    @JoinColumn(name = "personId")
}, inverseJoinColumns =
    @JoinColumn(name = "addressId")
@ManyToMany(fetch = FetchType.LAZY) 
private List<Address> addresses = new ArrayList<>();

I was able to map One-to-Many relationship by using @JoinField annotation (in Oracle NoSql) instead of @JoinColumn annotation used in relational DB.

Any help appreciated.
Previous Topic:JPA / Oracle NoSql / Eclipselink - Record Insertion Issue
Next Topic:ConcurrencyException throwed [SOLVED]
Goto Forum:

Current Time: Thu Apr 09 15:25:04 GMT 2020

Powered by FUDForum. Page generated in 0.01733 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top