Class Car


  • @Entity
    public class Car
    extends Object
    This class provides an example of providing more explicite mappings between the entity class and the database using annotations.
    • Field Detail

      • id

        private long id
      • year

        private int year
    • Constructor Detail

      • Car

        public Car()
      • Car

        public Car​(long id)
    • Method Detail

      • getId

        public long getId()
      • getMake

        public String getMake()
      • setMake

        public void setMake​(String make)
      • getModel

        public String getModel()
      • setModel

        public void setModel​(String model)
      • getYear

        public int getYear()
      • setYear

        public void setYear​(int year)
      • setCost

        public void setCost​(BigDecimal cost)