Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Unnecessary join-table

On Wed, Dec 30, 2009 at 11:01 AM, TiE82 <Oliver.Eckhardt@xxxxxxxxxxx> wrote:
   @OneToMany(cascade=CascadeType.ALL)
       List<Node> subNodes1 = new ArrayList<Node>();

Add: mappedBy="parentNode1" to the @OneToMany annotation here, and mappedBy="parentNode2" to that @OneToMany annotation and see if that solves your problem.

Best,
Laird

Back to the top