Hibernate Spatial is a generic extension to Hibernate for handling geographic data. Hibernate Spatial is open source and licensed, like Hibernate, under the LGPL license. Hibernate Spatial allows you to deal with geographic data in a standardized way. It abstracts away from the specific way your database supports geographic data, and provides a standardized, cross-database interface to geographic data storage and query functions.
Questions tagged [hibernate-spatial]
161 questions
0
votes
1 answer
Update hbm.xml file to hibernate 5 for hibernate.spatial.GeometryType
I have a Location.hbm.xml file with the following line:
We are updating to hibernate 5, and there is no GeometryType object…

Nick Redmark
- 667
- 6
- 17
0
votes
1 answer
How to reverse engineer a PostGIS enabled database with Eclipse Hibernate Tools?
This is my set up:
PostgreSQL 9.3
PostGIS 2.1.4
Eclipse Mars
Hibernate Tools 5.0
Hibernate Spatial 4.3 5.0
I also added postgis-jdbc.jar and jts.jar to the build path.
The .cfg.xml file opens with:

Luís de Sousa
- 5,765
- 11
- 49
- 86
0
votes
0 answers
Hibernate IndexEmbedded Spatial Entities
The Scenario
Class Employee, Class Office, Class OfficeEmployee.
Class office is a Spatial Entity, that can be searched and returns results as expected.
a manyToMany relationship between Office-Employee is mapped with the Class OfficeEmplyee.
Now I…

VendettaTurkey
- 330
- 3
- 10
0
votes
0 answers
Adding Hibernate Search
I'm working on a project in which I'm using Hibernate 5, which works well. Now, what I have to accomplish is to integrate Hibernate Search, so that I can look for objects by some of their String-type properties. By the way, I'm new to Hibernate…

joninx
- 1,775
- 6
- 31
- 59
0
votes
0 answers
Use the eclipse hibernate tool with hibernate spatial library
There is some one that was able to configure the HQL tool of the eclipse hibernate tool? I have try to configure it using the JPA. My configuration generate all the Entity (that are observable in the configuration) and the connection to the database…

Enrico De Guidi
- 11
- 3
0
votes
1 answer
How to write hibernate spatial update query?
My goal is to update drawn vector on the map.
My update Method :
public boolean update(int id,JSONObject json)
{
boolean success;
try{
EntityManager em = HibernateSpatialJPA.createEntityManager();
…

develop
- 131
- 6
- 16
0
votes
1 answer
How to do hibernate spatial delete?
I want to delete my database datas.
This is AJAX code taken from value from the TextBox :
function deleteVector()
{
var value = $('#hs').val();
console.log(value);
$.ajax({
type: "GET",
url: "/deleteGeoJson",
…

develop
- 131
- 6
- 16
0
votes
1 answer
Hibernate SpatialRestrictions & PostGIS alias: 'column does not exist'
When I specify a Criterion from SpatialRestrictions (e.g. SpatialRestrictions.intersects(propertyName, geometryObj)) the generated SQL is invalid as the column name has been aliased and used incorrectly:
Generated SQL
SELECT this_.GEO_LOCATION as…

brent
- 1,709
- 2
- 13
- 15
0
votes
1 answer
hibernate-spatial jpa distance query
I'm trying to query for nearest 10 hotsspots from my mysql database, heres my JPA entity:
@Entity
public class HotSpot {
@Id
@GeneratedValue
public Long Id;
@Type(type="org.hibernate.spatial.GeometryType")
public Point…

Sławomir Ossowski
- 84
- 6
0
votes
3 answers
Unable to get Connection while using Hibernate Spatial
We are using Weblogic, Hibernate 4.2.7, Hibernate Spatial 4.0 and Oracle as Database.
Upon Performing Save operation some times we are observing Unable to get Connection
Can you suggest any configuration we missed for Spatial ?
Stack Trace :
…

sakumar
- 489
- 5
- 11
0
votes
1 answer
Persisting a MultiPolygon geometry to a PostgreSQL database with Hibernate Spatial
I'm learning about hibernate spatial and am trying to follow this tutorial
I'm trying to persist a MultiPolygon to a Postgres database.
My database script :
create database multipolygon_test;
create extension postgis;
create extension…

joseph1234
- 1
- 1
- 2
0
votes
1 answer
Not finding Oracle Connection when a PostGIS connection is defined
I have an application running with Spring 3.1.1 , Hibernate 3.6.0.Final and Hibernate Spatial 1.1.1 on Tomcat 8.0.20. Until now, we were using Oracle 11.2.0.4 , but we want to migrate to PostgreSQL 9.2-1002.jdbc4 / PostGIS 2.1.6.
We will migrate…

krause
- 436
- 5
- 24
0
votes
0 answers
gvnix 1.4 with oracle
I have installed gvnix geo-petclinic example over JBoss AS 7.3 and Oracle 11g without problems.
But when I access the screen Maps -> Mapview I get this error in logs:
16:55:17,624 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper]…

jperez82
- 21
- 3
0
votes
1 answer
Is it possible to read the Z component of a SDO_POINT using Hibernate-Spatial over Oracle?
I am using Hibernate-Spatial to map a com.vividsolutions.jts.geom.Point field in an entity to an SDO_POINT field in my Oracle 11g table.
The column on the table is defined as :
"SST_COORDINATES" "MDSYS"."SDO_GEOMETRY"
The column is mapped as…

Pierre Henry
- 16,658
- 22
- 85
- 105
0
votes
1 answer
within() method in HibernateSpatial API is checking one way of Geometry, How to make it for two way?
I am using Hibernate Spatial API to check a point Inside \ Outside a Polygon.But it is not helping my Usecase.
As per my usecase, I am having a Polygon shape in my db. *Need to check a Point is inside
/ outside a stored polygon or not…

ArunRaj
- 1,780
- 2
- 26
- 48