Commit 5d7b27be authored by Juraj Fiala's avatar Juraj Fiala
Browse files

fix: Add cascading to Agent

parent 53ab7c6f
......@@ -22,17 +22,17 @@ public class Agent {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@OneToMany(cascade = CascadeType.ALL)
private List<Skill> skills = new ArrayList<>();
private String training = "";
@OneToMany(cascade = CascadeType.ALL)
private List<CodeName> codeNames = new ArrayList<>();
@OneToMany(mappedBy = "agent")
@OneToMany(mappedBy = "agent", cascade = CascadeType.ALL)
private List<AgentAssignment> agentAssignments = new ArrayList<>();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment