[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[eclipselink-users] @ManyToMany and @PrivateOwned
|
- From: khaskett <khaskett@xxxxxxxxxxx>
- Date: Tue, 21 Jul 2009 09:11:08 -0700 (PDT)
- Delivered-to: eclipselink-users@eclipse.org
Will this work if I use @PrivateOwned on a ManyToMany relationship, such that
if a Phone is removed from the list in the Customer class will only the
relationship table get deleted?
Example -
In Customer class:
@ManyToMany
@JoinTable(name="CUST_PHONES")
@PrivateOwned
public Set getPhones() { return phones; }
In PhoneNumber class:
@ManyToMany(mappedBy="phones")
public Set getCustomers() { return customers; }
--
View this message in context: http://www.nabble.com/%40ManyToMany-and-%40PrivateOwned-tp24590764p24590764.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.