session.get is returning object which does not exist

Description

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.

Environment

Hibernate 3.2.5.GA . AS400 Platform. DB2 ( built into AS400) database

Activity

Show:
Suneel Nallagonda
September 15, 2012, 5:19 AM

Hi,

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.

regards
Suneel

Duplicate

Assignee

Unassigned

Reporter

Suneel Nallagonda

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Blocker