Class Route


  • @Entity
    public class Route
    extends Object
    This class provides an example of the one side of a one-to-many, uni-directional relationship mapped using a foreign key inserted into the child/many table. The @JoinColumn is referencing the child table and not this entity's table.
    • Field Detail

      • number

        private int number
    • Constructor Detail

      • Route

        protected Route()
      • Route

        public Route​(int number)
    • Method Detail

      • getNumber

        public int getNumber()
      • getStops

        public List<Stop> getStops()
      • setStops

        public void setStops​(List<Stop> stops)