|
|
@@ -186,6 +186,7 @@ public class User implements Serializable {
|
|
|
/**
|
|
|
* 用户登录记录
|
|
|
*/
|
|
|
+ @JsonIgnore
|
|
|
@OneToOne(fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST})
|
|
|
@JoinColumn(name = "record_id")
|
|
|
private UserRecord userRecord;
|
|
|
@@ -193,10 +194,12 @@ public class User implements Serializable {
|
|
|
/**
|
|
|
* 密保问题
|
|
|
*/
|
|
|
+ @JsonIgnore
|
|
|
@OneToMany(fetch = FetchType.LAZY, cascade = {CascadeType.REMOVE})
|
|
|
@JoinColumn(name = "useruu", nullable = false)
|
|
|
private List<UserQuestion> questions;
|
|
|
|
|
|
+ @JsonIgnore
|
|
|
@ManyToMany(mappedBy = "users")
|
|
|
private Set<Userspace> userSpaces = new HashSet<>();
|
|
|
|
|
|
@@ -403,8 +406,6 @@ public class User implements Serializable {
|
|
|
this.lock = lock;
|
|
|
}
|
|
|
|
|
|
- @JsonIgnore
|
|
|
- @JSONField(serialize = false)
|
|
|
public UserRecord getUserRecord() {
|
|
|
return userRecord;
|
|
|
}
|
|
|
@@ -413,8 +414,6 @@ public class User implements Serializable {
|
|
|
this.userRecord = userRecord;
|
|
|
}
|
|
|
|
|
|
- @JsonIgnore
|
|
|
- @JSONField(serialize = false)
|
|
|
public List<UserQuestion> getQuestions() {
|
|
|
return questions;
|
|
|
}
|
|
|
@@ -422,8 +421,7 @@ public class User implements Serializable {
|
|
|
public void setQuestions(List<UserQuestion> questions) {
|
|
|
this.questions = questions;
|
|
|
}
|
|
|
- @JsonIgnore
|
|
|
- @JSONField(serialize = false)
|
|
|
+
|
|
|
public Set<Userspace> getUserSpaces() {
|
|
|
return userSpaces;
|
|
|
}
|