Skip to content

Commit

Permalink
[Fix kbss-cvut/fta-fmea-ui#352] Fix api for updating fault events
Browse files Browse the repository at this point in the history
 - replace fault event supertypes send from client, if any, with managed entities before
  • Loading branch information
kostobog committed Jun 9, 2024
1 parent ae86779 commit b98863a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ public void updateChildrenSequence(URI faultEventUri, List<URI> childrenSequence
log.info("< updateChildrenSequence");
}

@Override
protected void preUpdate(FaultEvent instance) {
if(instance.getSupertypes() != null && !instance.getSupertypes().isEmpty())
faultEventDao.loadManagedSupertypes(instance);

super.preUpdate(instance);
}

@Transactional
public void update(Rectangle rect){
faultEventDao.update(rect);
Expand Down

0 comments on commit b98863a

Please sign in to comment.