package org.apache.cayenne.lifecycle.db.auto;
import java.util.List;
import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.exp.Property;
import org.apache.cayenne.lifecycle.db.AuditableChild3;
/**
* Class _Auditable2 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 _Auditable2 extends CayenneDataObject {
private static final long serialVersionUID = 1L;
public static final String ID_PK_COLUMN = "ID";
public static final Property<String> CHAR_PROPERTY1 = Property.create("charProperty1", String.class);
public static final Property<String> CHAR_PROPERTY2 = Property.create("charProperty2", String.class);
public static final Property<List<AuditableChild3>> CHILDREN = Property.create("children", List.class);
public void setCharProperty1(String charProperty1) {
writeProperty("charProperty1", charProperty1);
}
public String getCharProperty1() {
return (String)readProperty("charProperty1");
}
public void setCharProperty2(String charProperty2) {
writeProperty("charProperty2", charProperty2);
}
public String getCharProperty2() {
return (String)readProperty("charProperty2");
}
public void addToChildren(AuditableChild3 obj) {
addToManyTarget("children", obj, true);
}
public void removeFromChildren(AuditableChild3 obj) {
removeToManyTarget("children", obj, true);
}
@SuppressWarnings("unchecked")
public List<AuditableChild3> getChildren() {
return (List<AuditableChild3>)readProperty("children");
}
}