I'm programmatically creating the persistence context via Properties jpaConf = new Properties(); jpaConf.put("openjpa.Id", JPA_ID); Persistence.createEntityManagerFactory(JPAHelperFactory.getInstance().getPersistenceID(), jpaConf)
with following annotation @OneToMany(targetEntity=XXX.class) @JoinColumn(name="XXX_fk") i'm getting error You have supplied columns for "XXX.yymethod", but this mapping cannot have columns in this context. I thought JoinColumn is supported with OneToMany in JPA 2.0 spec am I doing something wrong here? The issue seems similar to https://issues.apache.org/jira/browse/OPENJPA-1607 except that i'm not using a persistence.xml in this use case. -- View this message in context: http://openjpa.208410.n2.nabble.com/similar-issue-to-https-issues-apache-org-jira-browse-OPENJPA-1607-tp7580889.html Sent from the OpenJPA Users mailing list archive at Nabble.com.