/**
* Id number from "contacts" table
*/
- @JoinColumn (table = "contacts", unique = true)
+ @JoinColumn (table = "contacts", referencedColumnName = "customer_contact_id", name = "id", nullable = false, updatable = false, unique = true)
@OneToOne (optional = false, targetEntity = BaseContact.class, orphanRemoval = true)
- @Column (name = "customer_contact_id", nullable = false, length = 20)
private Contact contact;
/**
*/
@Basic (optional = false)
@OneToMany
- @JoinColumn (name = "customer_id", nullable = false, updatable = false)
+ @JoinColumn (table = "customer", referencedColumnName = "id", name = "customer_id", nullable = false, updatable = false)
private Customer customer;
/**