Hi,
I've been able to find many examples of implementations UserTypes but not any examples of
using user types. If you could link me to any example code on using (not defining) a UserType, that would be a big help.
Here's some pseudocode of what I am *trying* to do by using the the “StringClobType”, defined @
http://www.hibernate.org/56.html
suppose I want to load a row that has a clob column and i want to change it and then save it:
MyEntity obj = session.load(MyEntity.class, <primarykey>);
StringClobType stringClob = obj.getMyClobProperty();
//// At this point how am I going to get or change the contents of stringClob ????
obj.setMyClobProperty(stringClob);
session.update(obj);
suppose I want instantiate a new row, and save my clob:
StringClobType newClob = ?????; /// at this point how am i going to instantiate a new StringClobType
MyEntity obj = new MyEntity(..., ..., ...newClob)
session.save(obj);
Derrill
Hibernate version:
2
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: