I'm working on GIS project.
In that I want produce a web GIS by JSF + Hibernate.
My Spatial data is in Oracle-Spatial 12c, for some Spatial Analysis I must be connect to Oracle DB and insert update a spatial Table.
I see this link Hibernate-Spatial
I first try to do this with Maven project in Net Beans 8.02 but not that work correct!!
And finally I have done these Step:
creates a web Application with net Beans 8.02 with hibernate 4.3 and JSF
Do the Step of this for the Hibernate
Download jar files of Geo-tools from this link and add to my Project
Download the Jar file of the hibernate-spatial 4.3 from this link and ojdbc7
http://www.hibernatespatial.org/documentation/01-download/01-releases/
Add two Spatial Table to My project(LINE POINT)
a setting up this Steps in my project and my Line and point Class and .hbm.xml
http://www.hibernatespatial.org/documentation/03-dialects/05-oracle/
http://www.hibernatespatial.org/documentation/documentation/
When I Build my project in net Beans and try get a Query this From Line this Error show
java.lang.UnsupportedOperationException at org.hibernate.spatial.GeometrySqlTypeDescriptor.getExtractor(GeometrySqlTypeDescriptor.java:57) at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:263) at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:259) at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:249) at org.hibernate.type.AbstractStandardBasicType.hydrate(AbstractStandardBasicType.java:334) at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2969) at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1695) at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1627) at org.hibernate.loader.Loader.getRow(Loader.java:1514) at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:725) at org.hibernate.loader.Loader.processResultSet(Loader.java:952) at org.hibernate.loader.Loader.doQuery(Loader.java:920) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:354) at org.hibernate.loader.Loader.doList(Loader.java:2551) at org.hibernate.loader.Loader.doList(Loader.java:2537) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2367) at org.hibernate.loader.Loader.list(Loader.java:2362) at org.hibernate.hql.internal.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:939) at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:229) at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1260) at org.hibernate.internal.QueryImpl.list(QueryImpl.java:103)
Please help me how solve the problem Or is a best Solution than hibernate-spatial?