-->
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: Using generics without warning messages
PostPosted: Mon Apr 11, 2005 7:00 am 
Newbie

Joined: Thu Feb 26, 2004 4:31 am
Posts: 3
Hi

Does Hibernate 3 support generics as yet?

If it does, how can I make use of generics in Hibernate3 without
flagging warning messages in a query like this?

List<MyClass> list = (List<MyClass>)query.list("...");


Thanks

Btw, I'm using Eclipse 3.1, so it's flagging those as a type safety warning.
And I have TONS of these lying around...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 11, 2005 8:10 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hibernate 3 support generics fine - but we dont have a generics-friendly API yet (mainly because its a pain to maintain...but its on our "stuff we would like to do at some point" list ,)

_________________
Max
Don't forget to rate


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.