-->
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: error session load(java.lang.Class,int) using entity bean
PostPosted: Tue Oct 17, 2006 5:27 am 
Newbie

Joined: Tue Oct 17, 2006 5:18 am
Posts: 9
Hi

I'm using ejb 2 and also using hibernate for my entity bean.
But I have error when trying to use load() from session instance in my entity bean when I'm compiling it.
"symbol : method load(java.lang.Class,int)
location: interface org.hibernate.Session
Vehicle vhc = (Vehicle) sess.load(Vehicle.class, vehicleid);
1 error"

The snippet code as a follow

HibernateUtil.beginTransaction();
Session sess = HibernateUtil.getSession();
Vehicle vhc = (Vehicle) sess.load(Vehicle.class, vehicleid);

I use hibernate 3.2 btw
Please tell me how to fix this.


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.