-->
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: method signature wrong
PostPosted: Wed Nov 16, 2005 9:27 pm 
Newbie

Joined: Wed Nov 16, 2005 9:20 pm
Posts: 1
The Session method:

Object load(Class theClass, Serializable id)

must be:

<T> T load(Class<T> theClass, Serializable id)

So, te call

Foo f = (Foo)mySession.load(Foo.class, id)

can be:

Foo f = mySession.load(Foo.class, id)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 16, 2005 10:12 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
what?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 17, 2005 5:32 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No H3 will stay JDK 1.3 compliant
For this kind of API, you can use Hibernate Entity Manager

_________________
Emmanuel


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.