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:An exception was thrown while trying to load persistence unit at url: rsrc:..
Goto Forum:

Current Time: Fri Dec 15 23:45:51 GMT 2017

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

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