Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Hibernate Spatial support #692
Hibernate Spatial support
I'm trying to use INTERSECTS operation and when generates BooleanExpression i'm getting the following message:
I'm using HibernateSpatial.. then i'm trying to do the following:
Create my own class based on your HibernateSpatialSupport to create a valid intersects operation to use on HibernateSpatial.
I've created an HibernateSpatialOps with:
When i generate BooleanExpression with intersects operation appears the following message:
Can you help me?
Finally I found a solution to solve it.
I've create an HibernateSpatialTemplate that gets ops values from your /test/HibernateSpatialSupport and pass when constructs JPAQuery...
On the other hand i'm using JTS instead of geolate types...I've implemented GeometryExpression, GeometryPath, etc... To recive JTS items... Do you think is a good solution?
I pulled the PR and built the project locally. Then I added the dependency to my project, all is well. I am having trouble generating the code in maven. Could you possibly point me to a sample project or configuration example.
I've tried the configuration from here: http://www.querydsl.com/static/querydsl/3.4.3/reference/html_single/#spatial with no luck. The QClass that is generated has the Geolatte Geometry type as SimplePath instead of GeometryPath. If I try JTS Geometry I get ComparablePath instead of GeometryPath.
Thanks in advance,
@steventhomson There is not yet an example project for that. The configuration in the reference docs is for code generation based on JDBC schema inspection. If you want to use JPA annotations instead you should be able to get the desired results using this configuration http://www.querydsl.com/static/querydsl/3.5.0/reference/html/ch02.html#d0e123