Reputation: 2775
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 ?
Upvotes: 4
Views: 5771
Reputation: 1682
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
Upvotes: 9