I have a Parent and Child entity, both with a @Version field. The Parent is the owning side with a @ManyToOne, so the Child is loaded eargerly.
If I only lock the Parent with OPTIMISTIC_FORCE_INCREMENT and commit the transaction, then both entities have their version field incremented. Why is the Child version incremented, when its LockModeType according to the entity manager is NONE?
Im using jakarta namespaces if that makes any difference. I can’t find anywhere in the jakarta spec that descibes this behaviour.