package org.apache.cayenne.rop.protostuff.persistent.auto; import org.apache.cayenne.CayenneDataObject; import org.apache.cayenne.exp.Property; import org.apache.cayenne.rop.protostuff.persistent.MtTable1; /** * Class _MtTable2 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 _MtTable2 extends CayenneDataObject { private static final long serialVersionUID = 1L; public static final String TABLE2_ID_PK_COLUMN = "TABLE2_ID"; public static final Property<String> GLOBAL_ATTRIBUTE = Property.create("globalAttribute", String.class); public static final Property<MtTable1> TABLE1 = Property.create("table1", MtTable1.class); public void setGlobalAttribute(String globalAttribute) { writeProperty("globalAttribute", globalAttribute); } public String getGlobalAttribute() { return (String)readProperty("globalAttribute"); } public void setTable1(MtTable1 table1) { setToOneTarget("table1", table1, true); } public MtTable1 getTable1() { return (MtTable1)readProperty("table1"); } }