-->
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: How to handle "POINT" mySQL data type?
PostPosted: Fri Jul 10, 2009 7:00 pm 
Newbie

Joined: Fri Jul 10, 2009 6:49 pm
Posts: 3
sorry if this is a repost but searching for "point" even in combination with "data type" wasn't particularly useful.

i'm trying to figure out how to handle the POINT mySQL data type using hibernate. do i just create a custom "Point" java object? i'm not really sure what to do after this point though.

any help would be appreciated!


Top
 Profile  
 
 Post subject: Re: How to handle "POINT" mySQL data type?
PostPosted: Fri Jul 10, 2009 8:00 pm 
Newbie

Joined: Fri Jul 10, 2009 6:49 pm
Posts: 3
i just looked at the CompositeUserType interface and while it deceivingly offers what i'm looking for, i don't think this is it. i believe it assumes that the composite data type be on the Java side, not on the SQL side. so it wants multiple columns per one object whereas i need multiple Java objects (Floats in this case) per one column (POINT).

i also wonder if using java.awt.Point would work but i really doubt it.

any ideas?


Top
 Profile  
 
 Post subject: Re: How to handle "POINT" mySQL data type?
PostPosted: Fri Jul 24, 2009 1:53 pm 
Newbie

Joined: Fri Jul 10, 2009 6:49 pm
Posts: 3
in case anyone was wondering, hibernate spatial is the solution to this problem.


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.