I have a very simple OneToOne relationship: @OneToOne(optional = false,orphanRemoval = false) @JoinColumn (name="leadform_id",unique=false) public Leadform getLeadform() { return leadform; } When using optional = false I get in my hbm2ddl schema: unique (leadform_id) When using optional = true, i don't have that unique constrai...
|