Class Employee


  • @Entity
    public class Employee
    extends Person
    This class provides an entity sub-class example for a join inheritance strategy. The parent class will define a table and primary key value. This class and all derived classes will form separate tables that are joined by primary key.
    • Field Detail

      • payrate

        private double payrate
      • hireDate

        private Date hireDate
    • Constructor Detail

      • Employee

        public Employee()
      • Employee

        public Employee​(long id)
    • Method Detail

      • getHireDate

        public Date getHireDate()
      • setHireDate

        public void setHireDate​(Date hireDate)
      • getPayrate

        public double getPayrate()
      • setPayrate

        public void setPayrate​(double payrate)