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. |