-->
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: Method load of Session and its second parameter Serializable
PostPosted: Fri Sep 26, 2008 8:03 am 
Beginner
Beginner

Joined: Tue Aug 26, 2008 4:24 pm
Posts: 29
I have a persistent class and a property called "id" which is a int primitive variable. Using the method load(Class arg0, Serializable arg1) the second parameter has to be serializable and this feature is only applied to Classes so what about if my property of the class that represents the primary key of the table is a int primitive variable?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2008 9:24 am 
Beginner
Beginner

Joined: Mon Jul 05, 2004 9:29 am
Posts: 38
give your load() call a new Integer(yourId) as Serializable id


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.