@OneToMany(
cascade = CascadeType.ALL,
fetch = FetchType.LAZY,
mappedBy = "parent",
orphanRemoval = true
)
@org.hibernate.annotations.ForeignKey(name = "none")
public List<Child> getChildren() {
return _children;
}
@ManyToOne
@JoinColumn(
foreignKey = @ForeignKey(value = ConstraintMode.NO_CONSTRAINT)
)
public Parent getParent() {
return _parent;
}