Skip to content

Add information about Session/EM proxying to the Hibernate ORM documentation #39321

@okarmazin

Description

@okarmazin

Description

Pursuant to this discussion: #39231

The information about Quarkus proxying access to the single injected Session came as a surprise to me, because it is not included in the documentation at https://quarkus.io/guides/hibernate-orm

I would like to see this mentioned in the documentation since this is a surprising behavior. After all, I am injecting a single Session object into a single field, and the documentation doesn't say that accessing this field is special.

I had been injecting SessionFactory unnecessarily for the reason of needing multiple Sessions for multiple transactions. I wish I had known that accessing a single injected Session from different transactions gave me different Sessions.

Implementation ideas

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions