Class Coach


  • @Entity
    public class Coach
    extends Object
    This class demonstrates a one-to-one, uni-directional relationship where the foreign key is used to define the primary key with the use of @MapsId
    • Constructor Detail

      • Coach

        public Coach()
      • Coach

        public Coach​(Person person)
    • Method Detail

      • getId

        public int getId()
      • getPerson

        public Person getPerson()
      • setType

        public void setType​(Coach.Type type)