thanks gavin,
i am aware of this. i am new to hibernate, not writting code (been doing it for 15 years). i am recieving this error for the following test
Code:
public void testUpdateUser() throws Exception{
Session s = openSession();
// user1
UserBean usr = (UserBean) s.load(UserBean.class, new Double(myId));
assertTrue(usr.getEmail().equals(testEmail1));
usr.setEmail("yomama@ho.com");
s.flush();
s.connection().commit();
s.close();
}
as you can see i am not doing a check on the ids, only for loading. but wouldn't
Code:
if(myId.equals(myId2)){...}
work the same as described in the j2se api?
have i misunderstood something on how the load works? i have doubled checked my schema and bean/test classes and all is in order.
thanks,
jason
p.s. - you have done a wonderful job on hibernate, this is saving me a great deal of time and providing a very robust data layer. just the learning curve.