Ok, I understand that.
The issue is that we would have to retrieve the entire column from the database, then in the nullSafeGet() we would split up the column.
Say we have a column in a table(t1) and it has a char column called 'other' that has a zise of 256. We want to do a select a segment of the column. In Informix SQL, for example, we can do the following:
select t1.other[200,250] info from tl where t.other[200,250]= "some info"
In this case the "splitting' of the column information is done at the database level. In the case of the examples for Hibernate Custom Types it is done at the Java level. This would be ok, but how do we query in there "where" statement on the partial column as the query above illustrates? I may be missing something obvious here.
It seems to me, that for retrieving information using Hibernate, as we want, is a viable solution only if the partial column is not part of the Where clause.
Thanks for the help so far.
|