po poprawkach
This commit is contained in:
@@ -44,7 +44,7 @@ public class Event implements Serializable {
|
||||
private String comment;
|
||||
|
||||
@OneToMany(fetch = FetchType.EAGER, mappedBy = "event")
|
||||
@JsonIgnoreProperties(value = { "user", "event" }, allowSetters = true)
|
||||
@JsonIgnoreProperties(value = { "event" }, allowSetters = true)
|
||||
private Set<Registration> registrations = new HashSet<>();
|
||||
|
||||
// jhipster-needle-entity-add-field - JHipster will add fields here
|
||||
|
||||
@@ -37,7 +37,7 @@ public class Registration implements Serializable {
|
||||
@Column(name = "comment")
|
||||
private String comment;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@ManyToOne(fetch = FetchType.EAGER)
|
||||
private User user;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
|
||||
Reference in New Issue
Block a user