| 
					
						 After I evict() an object, both Session.get() and load() failed to get it back.
 This is the case regardless I have or haven't commited the connection after the save.
 Is that a bug or feature? 
 
 [b]Hibernate version:[/b] 2.1
 
 [code]
 
 session.save(myObj);
 
 session.connection().commit(); 
 // Same problem regardless it is commited or not
 
 session.evict(myObj);
 
 session.get(myObj.getClass(), myObj.id ); // return null
 session.load(myObj.getClass(), myObj.id ); // throws exception 
 
 //But can obtain it if I use find or createCriteria
 List list = session.createCriteria(myObj.getClass()).add(Expression.eq("id", myObj.id).list();
 
 [/code] 
					
  
						
					 |