Class Watch


  • @Entity
    public class Watch
    extends Object
    This class provides an example of joining three tables to make a single object. The WATCH, OWNER, and MAKER tables are joined by a common primary key value. Of course, this requires a one-to-one mapping of all 3 tables. If not, then we need to move to relationship mappings.
    • Constructor Detail

      • Watch

        public Watch()
      • Watch

        public Watch​(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)
      • getOwner

        public String getOwner()
      • setOwner

        public void setOwner​(String owner)
      • getCardnum

        public String getCardnum()
      • setCardnum

        public void setCardnum​(String cardnum)
      • getManufacturer

        public String getManufacturer()
      • setManufacturer

        public void setManufacturer​(String manufacturer)
      • getAddress

        public String getAddress()
      • setAddress

        public void setAddress​(String address)
      • getPhone

        public String getPhone()
      • setPhone

        public void setPhone​(String phone)