I have a probléme when i want to persist 2 objet in database
In Request class:
@OneToMany(cascade = CascadeType.PERSIST, mappedBy = "request") private List documents;
In Document class: @JoinColumn( referencedColumnName = "ID_REQUEST") @ManyToOne Request request
the problem is that when I add request the I find that the 2 object are persisted but in the table Document lD_REQUEST IS ALWAYS NULL
THANK YOU IN ADVANCE and sorry for my English