hibernate mapping for oracle long raw

hibernate, java, oracle

Solution

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

Problem

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 ?

Original source