Class Tire


  • @Entity
    public class Tire
    extends Object
    This class provides an example of the many/owning side of a many-to-one, bi-directional relationship mapped using a foreign key and that foreign key is used to derive the primary key of this class.
    • Field Detail

      • car

        private Car car
      • miles

        private int miles
    • Constructor Detail

      • Tire

        protected Tire()
    • Method Detail

      • getCar

        public Car getCar()
      • getMiles

        public int getMiles()
      • setMiles

        public void setMiles​(int miles)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object