openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Can someone translate this error?
Date Tue, 15 Jan 2008 18:25:58 GMT
Hi Big,

I think the problem might be that you have specified both Column and  
JoinColumn.

Can you try with using just Column and another try with just JoinColumn?

Based on these three tries, we can probably file a JIRA to improve  
error reporting.

Thanks,

Craig

On Jan 15, 2008, at 6:38 AM, bigbird wrote:

>
> Person has a one to many relationship with RequestHistory.  
> RequestHistory is
> a list of permission requests sent for a person. The version I'm  
> using is
> OpenJPA 1.0.1. The relationships are as follows:
>
> Person:
> @javax 
> .persistence 
> .OneToMany 
> (mappedBy="personId",fetch=javax.persistence.FetchType.EAGER)
> 	private List<ReqHistory> reqhistoryList;
>
> ReqHistory
> 	@Column(name="PERSON_ID")
> 	@javax.persistence.ManyToOne
> 	@javax.persistence.JoinColumn(name="PERSON_ID")	
> 	private Person personId;
>
>
> Pinaki Poddar wrote:
>>
>> 1. Post the definition of Person and RequestHistory.
>> 2. There was an intermittent version of OpenJPA build that had a  
>> bug on
>> how mapping strategies are installed and often showed up as error  
>> similar
>> to yours. Which build version of OpenJPA are you using?
>>  Version information can be printed by:
>>  $ java -jar /path/to/openjpa.jar
>>  or
>>  $ java org.apache.openjpa.lib.conf.OpenJPAVersion
>>
>>
>>
>>
>
> -- 
> View this message in context: http://www.nabble.com/Can-someone-translate-this-error--tp14814893p14841220.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message