Unable to save entity in database when field mapping a foreign key is null

Looking through your code I see this:

@Column(name = "nome", unique=true, nullable=false, length=32)
private String nome;

it means that 'nome' can't be null. If you want it to be null, then remove nullable=false, otherwise make field 'nome' mandatory on your view