Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using: Oracle 9i
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
I'm have this:
Code:
paramSupplier = (Supplier) s.load(Supplier.class, request.getParameter("supplierId"));
supplierId field is always greater than 0 in the database. That's why when i have that piece of code trying to load a supplierId = 0, i expect paramSupplier to be null, but that doesn't happen. Something is returned, but it's not null. If i try to read any of the properties os the non-null object, an exception is thrown.
Why is it no null? Is this the way Hibernate is reallly supposed to work?
Thanks to all
Eduardo