Class Person

  • Direct Known Subclasses:
    Customer, Employee

    @Entity
    public class Person
    extends Object
    This class provides an example base class in a join inheritance strategy. In this mode, the base and all derived classes declare their own table and all are joined using a common primary key.
    • Field Detail

      • id

        private long id
      • firstName

        private String firstName
      • lastName

        private String lastName
    • Constructor Detail

      • Person

        public Person()
      • Person

        public Person​(long id)
    • Method Detail

      • getId

        public long getId()
      • getFirstName

        public String getFirstName()
      • setFirstName

        public void setFirstName​(String firstName)
      • getLastName

        public String getLastName()
      • setLastName

        public void setLastName​(String lastName)