We're updating the issue view to help you get more done. 

Session.contains() and possibly others require an open session

Description

Is it really necessary to throw "session is closed" for operations such as session.contains(o) ?

I use session.contains(o) to figure out if a given object is inside the session to figure out if it is/has been persistent.

(i'll check if i can find more suttleties)

Environment

None

Status

Assignee

Unassigned

Reporter

MaxM

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

3.1.2

Priority

Critical