Hello,
I have minor problems with my UserTypes. The db types I want to map to are Postgres: box, path, point types which are not in: java.sql.Types.
However in the UserType I have to define the method:
public int[] sqlTypes(){
return new int[] { Types.OTHER};
}
I decided to return OTHER since I did not know what else to do. Other does not work at all and, when I change it to anything else the sql statement is rendered wrong (by the way, this only happens in union subclass mapping and not in joined subclass mapping):
"null::varchar as bounds, "
which should be:
"null::box as bounds, "
I looked around for a long time but I just cant find a way how to let hibernate render the query with "box" instead of any other type.
Do I maybe have to define a Type instead of a UserType?
Thanks for any help.
Phil
|