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
