Class Car


  • @Entity
    public class Car
    extends Object
    This class is an example of the one/inverse side of a one-to-many, bi-directional relationship mapped using a compound foreign key that is partially derived from the parent primary key.
    • Field Detail

      • id

        private int id
      • year

        private Date year
    • Constructor Detail

      • Car

        public Car()
    • Method Detail

      • getId

        public int getId()
      • getTires

        public Set<Tire> getTires()
      • getModel

        public String getModel()
      • setModel

        public void setModel​(String model)
      • getYear

        public Date getYear()
      • setYear

        public void setYear​(Date year)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object