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
August 3, 2012, 2:44 AM

Hi All,

I am wondering if any one is looking at this issue or not?. Since i have raised this issue a week back , now this is delaying our release and it is on a critical path.

Let me know if i need to provide more details on this issue.

Attached ZIP file contains entire code including test code.

regards
Suneel

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

Brett Meyer
September 19, 2012, 2:36 AM

3.2 is years old and no longer maintained. I ran your test case on 4.1.x and it works as expected.

Rejected

Assignee

Brett Meyer

Reporter

Suneel Nallagonda

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical