package org.apache.cayenne.testdo.things.auto; import org.apache.cayenne.CayenneDataObject; import org.apache.cayenne.exp.Property; import org.apache.cayenne.testdo.things.Box; import org.apache.cayenne.testdo.things.Thing; /** * Class _Ball 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 _Ball extends CayenneDataObject { private static final long serialVersionUID = 1L; public static final String ID_PK_COLUMN = "ID"; public static final Property<Integer> THING_VOLUME = Property.create("thingVolume", Integer.class); public static final Property<Integer> THING_WEIGHT = Property.create("thingWeight", Integer.class); public static final Property<Box> BOX = Property.create("box", Box.class); public static final Property<Thing> THING = Property.create("thing", Thing.class); public void setThingVolume(Integer thingVolume) { writeProperty("thingVolume", thingVolume); } public Integer getThingVolume() { return (Integer)readProperty("thingVolume"); } public void setThingWeight(Integer thingWeight) { writeProperty("thingWeight", thingWeight); } public Integer getThingWeight() { return (Integer)readProperty("thingWeight"); } public void setBox(Box box) { setToOneTarget("box", box, true); } public Box getBox() { return (Box)readProperty("box"); } public void setThing(Thing thing) { setToOneTarget("thing", thing, true); } public Thing getThing() { return (Thing)readProperty("thing"); } }