Hello,
I want to map bean's string proeperty to db long column. Use case is:
We have large data as string property in a java bean. And we want to save it in a long column in database.
This can be achieved using clob type. But our existing system has support for long data type in db using JDBC, so we want to support the existing schema. This can be achieved using JDBC, by using statement.setCharacterStream, we can save string data as Long in oracle db.
But I am not getting the way to implement this using Hibernate. As I am finding no way to convert string to long, so that can map it with long type of db.
waiting for suggestion, it is urgent.
Thanks
_________________ Mohit Gupta
Software Engineer
Gurgaon, India
|