-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate Spatial: “No Dialect mapping for JDBC type: 3000”
PostPosted: Thu Aug 29, 2013 6:55 am 
Newbie

Joined: Thu Aug 29, 2013 6:43 am
Posts: 7
Ok here's a rather bizarre question. I have a JPA annotated class that contains geometry types using JTS. I'm using Hibernate to save instances to a database. My application won't query any of this data, it's simply a producer. For development I thought I would use sqlite instead of postgresql/postgis so I don't have to install a full DB on my laptop. Then I remembered that my annotated class requires spatial support.

So - and here's the crazy question - is there a way to write custom classes for a specific type (Polygon, Point) in Hibernate for specific database support (i.e. sqlite) so that Hibernate will write a Polygon or Point as a String?

Thanks


Top
 Profile  
 
 Post subject: Re: Hibernate Spatial: “No Dialect mapping for JDBC type: 3000”
PostPosted: Thu Aug 29, 2013 10:35 am 
Hibernate Team
Hibernate Team

Joined: Fri Sep 09, 2011 3:18 am
Posts: 295
I think you need to create a custom type: http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/types.html#types-custom


Top
 Profile  
 
 Post subject: Re: Hibernate Spatial: “No Dialect mapping for JDBC type: 3000”
PostPosted: Thu Aug 29, 2013 10:39 am 
Hibernate Team
Hibernate Team

Joined: Fri Sep 09, 2011 3:18 am
Posts: 295
Oops...the link I've posted before was from an old version. This should be the most up to date at the moment: http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html_single/#types-custom


Top
 Profile  
 
 Post subject: Re: Hibernate Spatial: “No Dialect mapping for JDBC type: 3000”
PostPosted: Thu Aug 29, 2013 10:46 am 
Newbie

Joined: Thu Aug 29, 2013 6:43 am
Posts: 7
davided80 wrote:
Oops...the link I've posted before was from an old version. This should be the most up to date at the moment: http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html_single/#types-custom



Great thanks - I'll read the documentation at that link.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 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.