Binding foreign key in Vaadin (EclipseLink)
问题 I'm using Vaadin and EclipseLink. There are 2 tables, one is Mail , second in Customer . PK for Customer is customer_id, PK for mail is mail_id. Table Mail has Customer_id as a foreign key. How do I bind it? I tried: binder.forField(fkCustomerId) .withConverter(new StringToBigDecimalConverter(FormMessages.NUMBERS_ONLY)) .bind(Mail::getCustomerId, Mail::setCustomerId); Then I checked the Mail-entity class and found @JoinColumn(name = "CUSTOMER_ID", referencedColumnName = "CUSTOMER_ID")