Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jan Smejkal
Pa165 Secret Archive
Commits
5d7b27be
Commit
5d7b27be
authored
Mar 27, 2022
by
Juraj Fiala
Browse files
fix: Add cascading to Agent
parent
53ab7c6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/cz/fi/muni/pa165/seminar4/group7/secretservice/entity/Agent.java
View file @
5d7b27be
...
...
@@ -22,17 +22,17 @@ public class Agent {
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Long
id
;
@OneToMany
@OneToMany
(
cascade
=
CascadeType
.
ALL
)
@Setter
(
AccessLevel
.
NONE
)
private
List
<
Skill
>
skills
=
new
ArrayList
<>();
private
String
training
=
""
;
@OneToMany
@OneToMany
(
cascade
=
CascadeType
.
ALL
)
@Setter
(
AccessLevel
.
NONE
)
private
List
<
CodeName
>
codeNames
=
new
ArrayList
<>();
@OneToMany
(
mappedBy
=
"agent"
)
@OneToMany
(
mappedBy
=
"agent"
,
cascade
=
CascadeType
.
ALL
)
@Getter
private
List
<
AgentAssignment
>
agentAssignments
=
new
ArrayList
<>();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment