Skip to content

Commit

Permalink
set cascading stye to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jan 22, 2025
1 parent 4a03ccb commit 631d6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/main/java/ch/puzzle/okr/models/Unit.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public int hashCode() {

@CreatedBy
// @NotNull(message = MessageKey.ATTRIBUTE_NOT_NULL)
@ManyToOne(cascade = CascadeType.ALL)
@ManyToOne(cascade = CascadeType.MERGE)
private User createdBy;

public Long getId() {
Expand Down

0 comments on commit 631d6bf

Please sign in to comment.