Class Watch
- java.lang.Object
-
- ejava.examples.orm.core.annotated.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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddress()
String
getCardnum()
long
getId()
String
getMake()
String
getManufacturer()
String
getModel()
String
getOwner()
String
getPhone()
void
setAddress(String address)
void
setCardnum(String cardnum)
void
setMake(String make)
void
setManufacturer(String manufacturer)
void
setModel(String model)
void
setOwner(String owner)
void
setPhone(String phone)
String
toString()
-
-
-
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)
-
-