-->
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: OpenGIS implementation on top of Hibernate
PostPosted: Sun Dec 31, 2006 10:24 am 
Newbie

Joined: Mon Dec 19, 2005 9:18 pm
Posts: 17
Location: Brussels, Belgium
I'm currently developing an application which heavily depends on geospatial data access performance. I'm using Spring for my business layer, Hibernate for my data access layer, and MySQL 5 for the database part.

I'm studying the GIS features that have been added recently to MySQL (http://dev.mysql.com/doc/refman/5.0/en/ ... ction.html) and it seems quite impressive, but I'm starting to wonder whether I'll be able to access such data through my Hibernate data access layer.

For example, if I store points in my database and I want to retrieve all points whose distance to a given reference point is less than a given value. For now, my algorithm gets ALL the points and does the filtering in Java code. Of course the performance of this algorithm is awful so the ideal would be to get this filtering down to the database. For that, I would need a HibernateQL construct to do something like "from Points where distance(:referencePoint) < :referenceDistance".

Has there already been some work done in this area? Has anyone managed to get that kind of use-case sorted out?

Thx in advance.

_________________
Sébastien Arbogast


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 31, 2006 11:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it's just a sql function so just map it as such in your dialect or via Configuration.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 31, 2006 11:01 pm 
Newbie

Joined: Mon Dec 19, 2005 9:18 pm
Posts: 17
Location: Brussels, Belgium
OK. I'm not such an advanced Hibernate user so it's not something I've already done but at least you tell me it's possible so I'll have a look at this possibility. I'll have to read some docs about Dialects and Configuration first :o)

_________________
Sébastien Arbogast


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.