Hi,
I'm using hibernate spatial 5 in wildfly 10 with Oracle. I have an entity mapping com.vividsolutions.jts.geom.Geometry to SDO_GEOMETRY using @org.hibernate.annotations.Type(type = "jts_geometry"). My database geometry value is MDSYS.SDO_GEOMETRY(3001,4979,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1),MDSYS.SDO_ORDINATE_ARRAY(-99.2413337,47.1281995,591.25))
getSRID on the returned object returns 0 instead of 4979. getCoordinates returns the expected data so that part is working fine.
Casting to Point did not make a difference. Using geolatte_geometry instead of jts_geometry resulted in getSRID returning -1.
I'm using hibernate 5.0.7, geolatte-geom 1.0.1, jts 1.13, slf4j, oracle ojdbc7 persistence.xml has <property name="hibernate.dialect" value="org.hibernate.spatial.dialect.oracle.OracleSpatial10gDialect" />
Previously, getSRID worked as expected in my hibernate 4.3 / wildfly 8 implementation (same db).
Any thoughts appreciated!
|