package test.db1.auto;

import java.util.List;

/** Class _Department 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 class _Department extends org.apache.cayenne.CayenneDataObject {

    public static final String NAME_PROPERTY = "name";
    public static final String PEOPLE_PROPERTY = "people";

    public static final String ID_PK_COLUMN = "id";

    public void setName(String name) {
        writeProperty("name", name);
    }
    public String getName() {
        return (String)readProperty("name");
    }
    
    
    public void addToPeople(test.db2.Person obj) {
        addToManyTarget("people", obj, true);
    }
    public void removeFromPeople(test.db2.Person obj) {
        removeToManyTarget("people", obj, true);
    }
    public List getPeople() {
        return (List)readProperty("people");
    }
    
    
}
