>
> Hi,
>
> You should do something like this:
>
>
> //create your query
> Query q = session.createQuery(< your hql > );
> Geometry geom = < your parameter value>
> //now first create a custom type
> Type geometryType = new CustomType(GeometryUserType.class, null);
> q.setParameter(:geoExp0, geom, geometryType);
>
> You need to pass by CustomType because internally Hibernate can't
> figure out what Hibernate Type to use for Geometry objects.
>
> Regards
>
> Karel Maesen
>
Karl,
thanks for help - the problem was somewhere else: I was using Oracle
9i and not 10g. It seems that Hibernate Spatial only works for 10g. It
gives us another reason to frop the support for Oracle 0 :).
Another question: I had problems with using C3P0 connection pooling
with Hibernate Spatial - is it supported at all?
greetings, and have a good weekend,
--
Lukasz
_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users