-->
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 map java.awt.Color
PostPosted: Sun Mar 01, 2009 5:11 am 
Newbie

Joined: Thu Nov 13, 2008 12:55 pm
Posts: 2
Location: Israel
Hi all, I'm interested to know how to map java.awt.Color class with hibernate.
The point is that Color is immutable class which is constructed for example with three integers: red, green, blue. But the class doesn't have such fields, rather they are calculated to a private field named value, since class is immutable it doesn't have any setters.
How such class is constructed from the DB.
How do I map such class?

Any help will be appreciated.

Thanks,

Yan


Top
 Profile  
 
 Post subject: How to map java.awt.Color
PostPosted: Sun Mar 01, 2009 8:11 am 
Newbie

Joined: Sun Mar 01, 2009 6:29 am
Posts: 3
See org.hibernate.Type and how the interface is implemented for the supported types.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 8:18 am 
Newbie

Joined: Thu Nov 13, 2008 12:55 pm
Posts: 2
Location: Israel
Thank you.


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.