-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: hibernate spatial - getSRID returning 0 from oracle
PostPosted: Wed Nov 23, 2016 8:35 pm 
Newbie

Joined: Wed Nov 23, 2016 7:56 pm
Posts: 2
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!


Top
 Profile  
 
 Post subject: Re: hibernate spatial - getSRID returning 0 from oracle
PostPosted: Fri Nov 25, 2016 2:45 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
It could be some bug. Can you investigate it a little bit and if you spot some issue, please open a Jira issue and provide some replicating test case.


Top
 Profile  
 
 Post subject: Re: hibernate spatial - getSRID returning 0 from oracle
PostPosted: Fri Nov 25, 2016 2:32 pm 
Newbie

Joined: Wed Nov 23, 2016 7:56 pm
Posts: 2
Thank you, I will work on the reproduce case


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.