When i am using session.get method by passing a serializable ID which does not exists, it is still returning the object.
More details can be found at https://forum.hibernate.org/viewtopic.php?f=1&t=1016995.
Hibernate 3.2.5.GA . AS400 Platform. DB2 ( built into AS400) database
Please let me know if anyone is bothered to look at this issue. This is a blocking issue for my release and in my product i had to put a limitation just because i used hibernate. I would'nt have faced this issue if i had used JDBC. Please let me know if you need more information about this issue.
in the attached zip file i also put a junit test case.