package org.apache.cayenne.testdo.relationships_set_to_many.auto;
import java.util.Set;
import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.exp.Property;
import org.apache.cayenne.testdo.relationships_set_to_many.SetToManyTarget;
/**
* Class _SetToMany 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 _SetToMany extends CayenneDataObject {
private static final long serialVersionUID = 1L;
public static final String ID_PK_COLUMN = "ID";
public static final Property<Set<SetToManyTarget>> TARGETS = Property.create("targets", Set.class);
public void addToTargets(SetToManyTarget obj) {
addToManyTarget("targets", obj, true);
}
public void removeFromTargets(SetToManyTarget obj) {
removeToManyTarget("targets", obj, true);
}
@SuppressWarnings("unchecked")
public Set<SetToManyTarget> getTargets() {
return (Set<SetToManyTarget>)readProperty("targets");
}
}