Class StateResident


  • @Entity
    public class StateResident
    extends Object
    This class provides an example of the owning side of a many-to-one, uni-directional relationship that is realized through a foreign key from the child to the parent entity.
    • Field Detail

      • id

        private int id
      • state

        private State state
    • Constructor Detail

      • StateResident

        protected StateResident()
      • StateResident

        public StateResident​(State state)
    • Method Detail

      • getId

        public int getId()
      • getState

        public State getState()
      • setState

        public void setState​(State state)
      • getName

        public String getName()
      • setName

        public void setName​(String name)