package org.apache.cayenne.testdo.inheritance_people.auto;
import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.exp.Property;
import org.apache.cayenne.testdo.inheritance_people.Employee;
/**
* Class _Address was generated by Cayenne.
* It is probably a good idea to avoid changing this class manually,
* since it may be overwritten next time code is regenerated.
* If you need to make any customizations, please use subclass.
*/
public abstract class _Address extends CayenneDataObject {
private static final long serialVersionUID = 1L;
public static final String ADDRESS_ID_PK_COLUMN = "ADDRESS_ID";
public static final Property<String> CITY = Property.create("city", String.class);
public static final Property<Employee> TO_EMPLOYEE = Property.create("toEmployee", Employee.class);
public void setCity(String city) {
writeProperty("city", city);
}
public String getCity() {
return (String)readProperty("city");
}
public void setToEmployee(Employee toEmployee) {
setToOneTarget("toEmployee", toEmployee, true);
}
public Employee getToEmployee() {
return (Employee)readProperty("toEmployee");
}
}