Hi Frank, How about defining an attribute in your persistent entity and using that attribute (member variable) to store and retrieve the value appropriate to construct / initialize the java.awt.Color object member variable ? This additional attribute could be persistent like any other attribute of the persistent entity.
Regards, Gautam. On Wed, 27 Jun 2007 Hiller,Frank RD-PT31 wrote : >Hi list, > >I've got an object that has a java.awt.Color object in it. >I'd like to store the value of Color.getRGB() of the Color object in the >database. >And I'd like get a java.awt.Color object back when loading it from DB. > >How can I do that? > >Thank you, >Frank > > >Confidentiality note: >The information in this email and any attachment may contain confidential and >proprietary information of Heidelberger Druckmaschinen AG and/or its >affiliates and may be privileged or otherwise protected from disclosure. If >you are not the intended recipient, you are hereby notified that any review, >reliance or distribution by others or forwarding without express permission is >strictly prohibited and may cause liability. In case you have received this >message due to an error in transmission, we kindly ask you to notify the >sender immediately and to delete this email and any attachment from your >system.