Vaadin字段绑定来自超类的嵌套bean

时间:2016-06-27 10:26:36

标签: java hibernate spring-boot vaadin

我遇到了从母类绑定继承属性的问题。 我有一个实体PersonStaff,其中课程staff延伸person

public abstract class Person {
      private String firstName;
      private String lastName;
      private String phone;
      //... getters and setters ... //
}

public class Staff extends Person {
      private String identificationCode;
      private UnavailabilityReason reason;
      private Address address;
      //... getters and setters ... //
}

我有一个用于编辑员工的表单,我成功绑定了identificationCode, reason and address但没有firstName, lastName and phone

有人可以帮助我吗?

0 个答案:

没有答案