Class Resident


  • @Entity
    public class Resident
    extends Object
    This class provides an example use of a composite @IdClass primary key where one of the properties of the IdClass is derived from the foreign key.
    • Field Detail

      • house

        private House house
      • residentId

        private int residentId
    • Constructor Detail

      • Resident

        public Resident()
      • Resident

        public Resident​(House house,
                        int residentId)
    • Method Detail

      • getHouse

        public House getHouse()
      • getResidentId

        public int getResidentId()