JSF: how to update the list after delete an item of that list
- by Harry Pham
It will take a moment for me to explain this, so please stay with me. I have table COMMENT that has OneToMany relationship with itself.
@Entity
public class Comment(){
...
@ManyToOne(optional=true, fetch=FetchType.LAZY)
@JoinColumn(name="REPLYTO_ID")
private Comment replyTo;
@OneToMany(mappedBy="replyTo",…