1

Is there any JPA implementation that supports PostgreSQL hstore, geolocation and array data types ?

2
  • 1
    Most of them are extensible; I doubt any have support out of the box. I had enough trouble with even simpler types like json and xml in EclipseLink and Hibernate. Commented Jul 8, 2013 at 12:34
  • 1
    eclipselink 2.4 currently support @Array but neither with hstore or geolocation Commented Jul 8, 2013 at 12:42

3 Answers 3

2

DataNucleus has a spatial plugin that includes Postgresql spatial types (but it goes way beyond it). It doesn't explicitly do Postgresql array types but it is readily extensible, so you could write your own plugin for any missing type.

Sign up to request clarification or add additional context in comments.

Comments

1

You have got Hibernate spatial which is a generic extension to Hibernate for handling geographic data

3 Comments

the project is outdated, i've no luck with this
@kav1nsky I think you have missed tutorials and other things about it. It is very nice enhancement for Hibernate for PostgreSQL/PostGIS. I am currently working with this. And it is working very perfectly.
I do not know what is outdated too. This project is still active : "We are currently working on migrating Hibernate Spatial to a module of the Hibernate ORM project. The move will be complete by the time of the Hibernate 5 release. The Hibernate Spatial Release 4 will be therefore be the last release that is made independently of Hibernate." That is not an easy task to migrate for full jdbc/sql to JPA and I do not think you will find a better lib for your needs.
0

update :

This time i have made a few converters for geo point and array (limitied to array string and long) datatype, please check https://github.com/brain64bit/myeclipselink_converter

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.