You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by RamAESIS <rs...@hcl.in> on 2009/02/23 13:20:04 UTC

inverse join column question

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.