Class Tank


  • public class Tank
    extends Object
    This class an example of what to do with extra getter/setter fields (or fields) that should not be considered part of the persistence. The getMakeModel() convenience method will cause processing to fail because there is no matching setter(). Marking it with Transient in the orm.xml file fixes this.
    • Field Detail

      • id

        private long id
    • Constructor Detail

      • Tank

        public Tank()
      • Tank

        public Tank​(long id)
    • Method Detail

      • getId

        public long getId()
      • setId

        protected void setId​(long id)
      • getMakeModel

        public String getMakeModel()
      • getMake

        public String getMake()
      • setMake

        public void setMake​(String make)
      • getModel

        public String getModel()
      • setModel

        public void setModel​(String model)