How do I make this relationship mandatory when em.persist () is run?
I do not want to bidirectional map.
@OneToMany(cascade = {CascadeType.ALL})
@JoinColumn(name = "cliente_id",referencedColumnName="ID",insertable=true, nullable=false, columnDefinition="bigint DEFAULT 1 NOT NULL")
public List<Telefone> getTelefones() {
return telefones;
}