Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Postgres 9.5 Invalid endian flag value postgis
PostPosted: Mon Sep 05, 2016 11:29 am 
Newbie

Joined: Mon Sep 05, 2016 11:18 am
Posts: 2
Hi,
I am defining a PostGIS spatial table in Postgres 9.5
@Column(name = "location", columnDefinition = "Geometry(Point,4326)")
public Point location;
column.
We utilize Spring hibernate-spatial 5.2.2.Final, hibernate-core 5.2.2.Final, hibernate-entitymanager 5.2.2.Final maven dependencies.
When invoking save to hibernate, we keep receiving below error:

o.h.engine.jdbc.spi.SqlExceptionHelper : SQL Error: 0, SQLState: XX000
o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: Invalid endian flag value encountered.
o.h.e.j.b.internal.AbstractBatchImpl : HHH000010: On release of batch it still contained JDBC statements.

Can anyone help?


Top
 Profile  
 
 Post subject: Re: Postgres 9.5 Invalid endian flag value postgis
PostPosted: Thu Sep 08, 2016 9:12 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 890
The example shown in the 5.2 User Guide can be found here, on GitHub.

There, I used the following Point class:

Code:
import com.vividsolutions.jts.geom.Point;


Can you validate that you're using the same Point class as well?

_________________
If you liked my answer, you are going to love my High-Performance Java Persistence book and my blog as well.


Top
 Profile  
 
 Post subject: Re: Postgres 9.5 Invalid endian flag value postgis
PostPosted: Thu Sep 08, 2016 10:45 am 
Newbie

Joined: Mon Sep 05, 2016 11:18 am
Posts: 2
Thanks,
we tried it and it works. Thanks a lot!!!

martin


Top
 Profile  
 
 Post subject: Re: Postgres 9.5 Invalid endian flag value postgis
PostPosted: Thu Sep 08, 2016 11:12 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 890
You are welcome.

_________________
If you liked my answer, you are going to love my High-Performance Java Persistence book and my blog as well.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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.