Unverified Commit 21cafa0f authored by Martin Lowe's avatar Martin Lowe 🇨🇦 Committed by GitHub
Browse files

Add unique flag to column def for organization entity (#125)

parent 8fd97e61
......@@ -48,10 +48,10 @@ public class FormOrganization extends BareNode implements TargetedClone<FormOrga
// form entity
@OneToOne(targetEntity = MembershipForm.class)
@JoinColumn(name = "form_id")
@JoinColumn(name = "form_id", unique = true)
private MembershipForm form;
@OneToOne(cascade = { CascadeType.ALL },mappedBy = "organization")
@OneToOne(cascade = { CascadeType.ALL }, mappedBy = "organization")
private Address address;
@Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment