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.  [ 1 post ] 
Author Message
 Post subject: strategy for dealing with parameterized type class
PostPosted: Mon Dec 13, 2004 2:36 am 
Newbie

Joined: Sun Dec 12, 2004 5:52 pm
Posts: 9
Hi,

I am quit new in the hibernate business, and I would like to know about good strategies to deal with persistence of a class that looks something like this:

Code:
public class Property<T> implements java.io.Serializable {
   
    private long id;
    private int version;
    protected String propertyName;
    protected T value;
   


I might be wrong, but I'm quite sure that you cannot duplicate the parameterized type mechanism T value in a single table column.

My objective is to be able to store primitive types in the T value or any other objects. (like ImageIcon for example)

I would appreciate any ideas\thoughts\answers.

Thanks,

Yaniv

Hibernate version:3

Name and version of the database you are using:MySQL


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.