Answer the question
In order to leave comments, you need to log in
Detach One To One entity. Or is it possible not to save the OneToOne entity?
There is an entity-class Examination, it contains a link to another entity - ExaminationResult.
@Entity
@Table(name = "EXAMINATIONS")
public class Examination{
/***/
@OneToOne(mappedBy = "examination", cascade = {CascadeType.PERSIST, CascadeType.REFRESH, CascadeType.MERGE, CascadeType.DETACH})
private ExaminationResult examinationResult;
/***/
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question