FooObject has an entity with a few lists of bar objects managed by entities. Whenever I edit FooObject and call update on it, all of those lists are added to, not replaced.
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY,
mappedBy = "barEntity", targetEntity = BarTypeAEntity.class)
private List<BarTypeAEntity> barTypeAs;
I can first remove all the lists before calling update but in auditing these tables it appears as a delete then an new creation, rather than just one update.
How can I just simply overwrite rather than append these lists