Hello all,
I am trying to perform save() on a transient entity, with cascading.
the entity holds a reference to another transient entity.
I am using versioning of entities, with unsaved-value=negative (version type=Integer).
for some reason, hibernate attempts to set some of the properties (bussiness properites, not something like the version or id or whatever) of the referenced entity.
from what I gather, there is a logic that says (in versioning.seedVersion())
that if there is a situation where the current version is null or negative,
hibernate sets the version to be a seed version, and decided that the properties need to be substituted.
why should the properties be substituted in his case?
Thanks in advance,
Assaf.
|