@Override public BankBranch getBankBranch() { BankBranch a = new BankBranch(); Bank b = new Bank(bankCode.getText(), bankName.getText()); a.setId(getId()); a.setCode(branchCode.getText()); a.setDomiciliation(domiciliation.getText()); a.setBicCode(bicCode.getText()); a.setAddress(addressView.get()); a.setBank(b); return a; }