FWIW I just tried the testcase attached to OPENJPA-1508, and it worked on OpenJPA v 1.2.x (checked out from SVN).
I'm going to close the JIRA issue as a dup of OPENJPA-1424. It's possible that you're hitting a different problem with the same symptom though. If you still see the problem on one of the latest snapshot builds for OpenJPA 1.2.3 then we'll reopen the JIRA issue. The fix for OPENJPA-1424 will be picked up by WebSphere and included in a fixpack for WebSphere v7. You'll have to check with their support team to find when that fixpack will be available or to get an official iFix for the problem. hth -mike On Thu, Sep 9, 2010 at 9:55 AM, Michael Dick <[email protected]>wrote: > On Thu, Sep 9, 2010 at 9:52 AM, mpf <[email protected]> wrote: > >> >> >> Michael Dick wrote: >> > >> > I think that's the solution that B.J. mentioned in the JIRA. The >> testcase >> > attached to the JIRA might shed some light on the problem. Is there >> > anything >> > obviously different between that testcase and what you're doing? >> > >> >> I didnt studied the testcase exactly. >> I notice that I have the same kind of dependency twice at my application >> and >> one works and the other dont. >> >> Snippet of the working dependency: >> @Table(name = "person") >> @Entity >> public class Person { >> @ManyToMany(cascade = CascadeType.REFRESH, fetch = FetchType.EAGER) >> @JoinTable(name = "titelzuordnung", joinColumns = { >> @JoinColumn(name = >> "person") }, >> inverseJoinColumns = { @JoinColumn(name = "titel") }) >> private List<Titel> titelListe; >> >> .. >> } >> table: >> person --n:m-- titel with jointable titelzuordnung which just contains the >> both foreignkeys as primarykeys. >> >> Snippet of the not working dependency: >> public class EuFeuerwaffenpass { >> @ManyToMany(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY) >> @JoinTable(name = "eufeuerwaffenpasszuordnung", joinColumns = { >> @JoinColumn(name = >> "eufeuerwaffenpass") }, inverseJoinColumns = { @JoinColumn(name = >> "waffe") }) >> private List<Waffe> waffeListe; >> ... >> } >> table: >> eufeuerwaffenpass--n:m--waffe with jointable eufeuerwaffenpasszuordnung >> which just contains the both foreignkeys as primarykeys. >> > > I haven't had a chance to look at the testcase in depth either. As it turns > out the symptom looks very similar to > OPENJPA-1424<https://issues.apache.org/jira/browse/OPENJPA-1424>- which was > fixed very recently. > > Can you try using one of the latest OpenJPA 1.2.3 SNAPSHOT > builds<http://people.apache.org/repo/m2-snapshot-repository/org/apache/openjpa/apache-openjpa/1.2.3-SNAPSHOT/apache-openjpa-1.2.3-SNAPSHOT-binary.zip>outside > of WebSphere? > > -mike > >
