1
How do I make this relationship mandatory when the in persist.() be executed?
I don’t want to map bidirectional.
@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;
}