Skip to main content



      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 08:07
Eclipse UserFriend
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: Tue Jul 08 00:05:23 EDT 2025

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

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

Back to the top