Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMmY1ZDc1MDNi...
) / Deprecation (
https://hibernate.atlassian.net/browse/HHH-15697?atlOrigin=eyJpIjoiMmY1ZD...
) HHH-15697 (
https://hibernate.atlassian.net/browse/HHH-15697?atlOrigin=eyJpIjoiMmY1ZD...
) deprecate lock(entityName,...) (
https://hibernate.atlassian.net/browse/HHH-15697?atlOrigin=eyJpIjoiMmY1ZD...
)
Issue Type: Deprecation Assignee: Unassigned Components: hibernate-core Created:
09/Nov/2022 06:15 AM Priority: Major Reporter: Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We now document that Session.lock() accepts a managed instance. Historically, lock() could
be used to reassociate a detached instance, so that’s why there is an overloaded version
which accepts an entity name. Since that’s no longer relevant, we should have deprecated
that overload in 6.0, but I missed it.
(
https://hibernate.atlassian.net/browse/HHH-15697#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15697#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100210- sha1:ffe1a02 )