-->
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: Map java.awt.point to Postgresql Point
PostPosted: Mon Dec 17, 2007 12:06 pm 
Newbie

Joined: Mon Dec 17, 2007 11:50 am
Posts: 14
Hi,

I have java class with an attribute of the type java.awt.point. I have a postgresql database table with a column of the type "point". However alternate transforms the java.awt.point to a byte array. How can I define that the java.awt.point is transferred to a postgresql "point"?

Thanks a lot!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 9:56 am 
Newbie

Joined: Mon Dec 17, 2007 11:50 am
Posts: 14
Does noone have a solution?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 9:56 am 
Newbie

Joined: Mon Dec 17, 2007 11:50 am
Posts: 14
Does noone have a solution?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 18, 2007 11:37 pm 
Regular
Regular

Joined: Sat Nov 25, 2006 11:37 am
Posts: 72
Not sure if it can be done but I would look into 'Custom Mapping Types' as explained for example in Chapter 5.3 in 'Java Persistence with Hibernate'. Also, have you checked if what is described in http://www.hibernate.org/hib_docs/v3/re ... pes-custom in the Hibernate on-line docs would be useful to resolve your problem?


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.