François Rosière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16550 (
https://hibernate.atlassian.net/browse/HHH-16550?atlOrigin=eyJpIjoiZTdkYW...
)
Re: Allow accessing the entity identifier from the UserType#nullSafeSet method (
https://hibernate.atlassian.net/browse/HHH-16550?atlOrigin=eyJpIjoiZTdkYW...
)
My custom type need to have access to the entity identifier to allow computing the value
to either persist or load from the database.
The nullSafeGet methods already provides a way to access the entity identifier as the
owner is a parameter of the nullSafeGet method. So, through the session, it’s possible to
retrieve the identifier using the following portion of code
session.getContextEntityIdentifier(owner);
The nullSafeSet method does not allow retrieving the identifier of the owner. So, this
ticket has been created to solve that. Hope it’s clearer.
(
https://hibernate.atlassian.net/browse/HHH-16550#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16550#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#100225- sha1:f83bc8f )