Package ejava.examples.orm.core.mapped
Class Watch
- java.lang.Object
-
- ejava.examples.orm.core.mapped.Watch
-
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAddress()StringgetCardnum()longgetId()StringgetMake()StringgetManufacturer()StringgetModel()StringgetOwner()StringgetPhone()voidsetAddress(String address)voidsetCardnum(String cardnum)voidsetMake(String make)voidsetManufacturer(String manufacturer)voidsetModel(String model)voidsetOwner(String owner)voidsetPhone(String phone)StringtoString()
-
-
-
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)
-
-