-->
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.  [ 2 posts ] 
Author Message
 Post subject: Can you persist a generic class in Hibernate?
PostPosted: Wed Feb 20, 2008 2:54 pm 
Newbie

Joined: Wed Feb 20, 2008 2:42 pm
Posts: 2
What I've read so far suggests no, but the most recent post I've found is nearly two years old.

Has support for generic classes been added to Hibernate? ie...

Code:
public class MyClass<T extends SomePersistableObject> {
    private T myData;
}


Assuming SomePersistableObject is your standard, Hibernate-persisted class.... Does hibernate support persisting MyClass?


Thank you.
Eric


Top
 Profile  
 
 Post subject: answer seems to be no
PostPosted: Wed Feb 20, 2008 3:07 pm 
Newbie

Joined: Wed Feb 20, 2008 2:42 pm
Posts: 2
Just found these:
http://opensource.atlassian.com/project ... se/ANN-526

and

http://opensource.atlassian.com/project ... se/ANN-539

So it appears that these are known issues that will, with any luck, be resolved eventually. Have to work around it until then.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.