Remove accounts references from User
This commit is contained in:
parent
5eb6efcffe
commit
5e161d9c9d
@ -20,7 +20,6 @@ public class TimetrackAccount {
|
|||||||
private String name;
|
private String name;
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@JsonBackReference
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private TimetrackUser user;
|
private TimetrackUser user;
|
||||||
|
|
||||||
|
@ -32,10 +32,6 @@ public class TimetrackUser {
|
|||||||
@ManyToOne(fetch = FetchType.EAGER)
|
@ManyToOne(fetch = FetchType.EAGER)
|
||||||
private Role role;
|
private Role role;
|
||||||
|
|
||||||
@JsonManagedReference
|
|
||||||
@OneToMany(mappedBy = "user", fetch = FetchType.LAZY)
|
|
||||||
private List<TimetrackAccount> accounts;
|
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Location location;
|
private Location location;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user