Do not rely on Entity#== for checking if attributes have been persisted.