Skip to content

Commit

Permalink
Changed CascadeType from skills in Artefact to MERGE and PERSIST (#218)
Browse files Browse the repository at this point in the history
* Changed CascadeType from skills in Artefact to ALL

* Change CascadeType to MERGE and PERSIST
  • Loading branch information
aiakide authored and Christoph-Meyer committed Apr 29, 2019
1 parent d2a3f61 commit f1c68cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class Artefact {
@JoinColumn(name = "level_id")
private Level minLevel;

@ManyToMany(cascade = CascadeType.MERGE)
@ManyToMany(cascade = {CascadeType.MERGE, CascadeType.PERSIST})
@JoinTable(name = "Artefact_Skill", joinColumns = @JoinColumn(name = "artefact_id", referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name = "skill_id", referencedColumnName = "id"))
private List<Skill> skills;

Expand Down

0 comments on commit f1c68cb

Please sign in to comment.