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 description;
|
||||
|
||||
@JsonBackReference
|
||||
@ManyToOne
|
||||
private TimetrackUser user;
|
||||
|
||||
|
@ -32,10 +32,6 @@ public class TimetrackUser {
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
private Role role;
|
||||
|
||||
@JsonManagedReference
|
||||
@OneToMany(mappedBy = "user", fetch = FetchType.LAZY)
|
||||
private List<TimetrackAccount> accounts;
|
||||
|
||||
@ManyToOne
|
||||
private Location location;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user