Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hibernate mapping for oracle long raw

I try to create a hibernate mapping for an oracle database. The datebase is pretty old from before oracle 8 but is now on 10. Hibernate reverse engineering balks at a long raw column. This datatype is deprecated and should be converted to blob.

But this is not my database. If the customer refuses to convert how would a hibernate mapping look like ?

like image 996
openCage Avatar asked Jan 19 '23 07:01

openCage


1 Answers

Try mapping it to byte[].

If you get java.sql.SQLException: Stream has already been closed, then try setting useFetchSizeWithLongColumn = true in the connection properties for the OJDBC driver. See the OracleDriver API

like image 144
Pablo Avatar answered Jan 21 '23 20:01

Pablo