Timeline for session.connection() deprecated on Hibernate?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 5, 2023 at 15:03 | comment | added | mjs | My question is what happens when you want the connection "free", and you achieve that by returning the connection passed from doReturningWork ... would that not essentially be the same as getConnection() ? | |
May 31, 2019 at 11:28 | comment | added | Vic |
@tilper SessionImpl is in an internal package of Hibernate (so not intended to be used) and also that is a dependency on actual implementation. Also you cannot mock the session in your tests easily, when you cast it.
|
|
Aug 1, 2018 at 15:12 | comment | added | user6096242 | Why doesn't this have more upvotes? Is there some reason this shouldn't be done? Works perfectly for me. | |
Dec 5, 2017 at 15:09 | comment | added | Sam Berry | ❤️ uuuuu so frustrating this is necessary - trying to get my app setup to set readonly connections in order to distribute across read replicas. Thanks. | |
May 4, 2013 at 2:35 | history | edited | Bohemian♦ | CC BY-SA 3.0 |
added 4 characters in body
|
May 4, 2013 at 2:34 | review | Late answers | |||
May 4, 2013 at 2:35 | |||||
May 4, 2013 at 2:17 | history | answered | Mohammad Hosseini | CC BY-SA 3.0 |