Posting the solution for this problem.
JPAContainer does a merge on the parent entity, but if CaseCade=MERGE isn’t set the child entity won’t be updated
Posting the solution for this problem.
JPAContainer does a merge on the parent entity, but if CaseCade=MERGE isn’t set the child entity won’t be updated
I assume that you meant CascadeType.MERGE, as given in @OneToOne(cascade={CascadeType.MERGE}).
Thanks, I think that will be useful to others having that kind of situation, which is probably rather common. Also the other cascade operation types may be useful in similar situations.
Yes exactly correct.