openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From garpinc <garp...@yahoo.com>
Subject similar issue to https://issues.apache.org/jira/browse/OPENJPA-1607
Date Thu, 16 Aug 2012 14:56:26 GMT
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.

Mime
View raw message