4 lab alga jsonIgnore
This commit is contained in:
parent
a22ff8d8bb
commit
dcb1c381c9
@ -17,11 +17,9 @@ public class Comment {
|
||||
private String Text;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER,cascade = CascadeType.MERGE)
|
||||
@JsonIgnore
|
||||
private Post post;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER,cascade = CascadeType.MERGE)
|
||||
@JsonIgnore
|
||||
private User user;
|
||||
|
||||
public Comment()
|
||||
|
@ -28,7 +28,6 @@ public class Post {
|
||||
private byte[] image;
|
||||
|
||||
@ManyToOne(fetch = FetchType.EAGER,cascade = CascadeType.MERGE)
|
||||
@JsonIgnore
|
||||
private User user;
|
||||
|
||||
@OneToMany(mappedBy = "post",fetch = FetchType.EAGER,cascade = {CascadeType.MERGE,CascadeType.REMOVE},orphanRemoval = true)
|
||||
|
Loading…
Reference in New Issue
Block a user