openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RamAESIS <rsan...@hcl.in>
Subject inverse join column question
Date Mon, 23 Feb 2009 12:20:04 GMT

Hi,

I am using the below mentioned annotation for a one-to-many mapping


@OneToMany(cascade={CascadeType.PERSIST,CascadeType.REMOVE},fetch=FetchType.EAGER)
	@JoinTable(name="OR_MW_FC",joinColumns={
			@JoinColumn(name="OR_MW_MDW_PNR",referencedColumnName="OR_MF_MDW_PNR")},

inverseJoinColumns=@JoinColumn(name="OR_MF_MDW_PNR",referencedColumnName="OR_MW_MDW_PNR"))
	Set<OR_MW_FC> OR_MW_FC = new HashSet<OR_MW_FC>();

The referenced column name and source column name in inverseJoinColumns is
of the same type integer, but OpenJPA is throwing an exception like 

Exception in thread "main" <openjpa-1.2.0-r422266:683325 fatal user error>
org.apache.openjpa.persistence.ArgumentException:
"sample.OR_MEDEWERKER.OR_MW_FC<element:class sample.OR_MW_FC>" declares a
column that is not compatible with the expected type "blob".  Column
details:
Full Name: OR_MW_FC.OR_MF_MDW_PNR
Type: integer
Size: 6
Default: null
Not Null: false

Thanks in advance.

Regards,
Ram




-- 
View this message in context: http://n2.nabble.com/inverse-join-column-question-tp2371808p2371808.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.


Mime
View raw message