Hi,
  See if externalization on COL2 helps to coerce NUMBER to VARCHAR2 :
   
http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_pc_extern





RamAESIS wrote:
> 
> Hi,
> 
> I have a requirement as mentioned below:
> 
> Table A has a column COL1 of type VARCHAR2, table B has column COL2 of
> type NUMBER. When i provide the COL2 as join column for the @OneToMany
> annotations OpenJPA is throwing an exception for type mismatch. Is there
> any work around or solution to type cast the join column data? Please
> help.
> 
> Regards,
> Ram
> 


-----
Pinaki 
-- 
View this message in context: 
http://n2.nabble.com/Regarding-automatic-type-conversion-of-joincolumns-tp2376667p3392950.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to