package org.apache.cayenne.testdo.mt.auto;
import java.util.List;
import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.exp.Property;
import org.apache.cayenne.testdo.mt.MtTable2;
/**
* Class _MtTable1 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 _MtTable1 extends CayenneDataObject {
private static final long serialVersionUID = 1L;
public static final String TABLE1_ID_PK_COLUMN = "TABLE1_ID";
public static final Property<String> GLOBAL_ATTRIBUTE1 = Property.create("globalAttribute1", String.class);
public static final Property<String> SERVER_ATTRIBUTE1 = Property.create("serverAttribute1", String.class);
public static final Property<List<MtTable2>> TABLE2ARRAY = Property.create("table2Array", List.class);
public void setGlobalAttribute1(String globalAttribute1) {
writeProperty("globalAttribute1", globalAttribute1);
}
public String getGlobalAttribute1() {
return (String)readProperty("globalAttribute1");
}
public void setServerAttribute1(String serverAttribute1) {
writeProperty("serverAttribute1", serverAttribute1);
}
public String getServerAttribute1() {
return (String)readProperty("serverAttribute1");
}
public void addToTable2Array(MtTable2 obj) {
addToManyTarget("table2Array", obj, true);
}
public void removeFromTable2Array(MtTable2 obj) {
removeToManyTarget("table2Array", obj, true);
}
@SuppressWarnings("unchecked")
public List<MtTable2> getTable2Array() {
return (List<MtTable2>)readProperty("table2Array");
}
}