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")},

inversejoincolum...@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.

Reply via email to