package org.apache.cayenne.testdo.compound.auto; import java.util.List; import org.apache.cayenne.CayenneDataObject; import org.apache.cayenne.exp.Property; import org.apache.cayenne.testdo.compound.CompoundFkTestEntity; /** * Class _CompoundPkTestEntity 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 _CompoundPkTestEntity extends CayenneDataObject { private static final long serialVersionUID = 1L; public static final String KEY1_PK_COLUMN = "KEY1"; public static final String KEY2_PK_COLUMN = "KEY2"; public static final Property<String> KEY1 = Property.create("key1", String.class); public static final Property<String> KEY2 = Property.create("key2", String.class); public static final Property<String> NAME = Property.create("name", String.class); public static final Property<List<CompoundFkTestEntity>> COMPOUND_FK_ARRAY = Property.create("compoundFkArray", List.class); public void setKey1(String key1) { writeProperty("key1", key1); } public String getKey1() { return (String)readProperty("key1"); } public void setKey2(String key2) { writeProperty("key2", key2); } public String getKey2() { return (String)readProperty("key2"); } public void setName(String name) { writeProperty("name", name); } public String getName() { return (String)readProperty("name"); } public void addToCompoundFkArray(CompoundFkTestEntity obj) { addToManyTarget("compoundFkArray", obj, true); } public void removeFromCompoundFkArray(CompoundFkTestEntity obj) { removeToManyTarget("compoundFkArray", obj, true); } @SuppressWarnings("unchecked") public List<CompoundFkTestEntity> getCompoundFkArray() { return (List<CompoundFkTestEntity>)readProperty("compoundFkArray"); } }