tags:

views:

60

answers:

0

I have an association OneToMany from class A to B (A parent property, B child property).

The property setter the parent property (B.A = value) has the logic to update the id field in B to keep the entity and the id in sync. That is, whenever I assign a new value to B.A, B.Aid is also automatically updated.

But if I happen to remove the child property from A (I'm not interested in keeping track of all A.Bs), the new generated code does not have the logic to keep B.A and B.Aid in sync.

I'm not sure if this is the supposed behaviour, or I'm missing something here. Any help would be appreciated!