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.
|