package org.apache.cayenne.testdo.cay_2032.auto;
import java.util.List;
import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.exp.Property;
import org.apache.cayenne.testdo.cay_2032.Team;
/**
* Class _User 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 _User extends CayenneDataObject {
private static final long serialVersionUID = 1L;
public static final String USER_ID_PK_COLUMN = "user_id";
public static final Property<byte[]> NAME = Property.create("name", byte[].class);
public static final Property<List<Team>> USER_TEAMS = Property.create("userTeams", List.class);
public void setName(byte[] name) {
writeProperty("name", name);
}
public byte[] getName() {
return (byte[])readProperty("name");
}
public void addToUserTeams(Team obj) {
addToManyTarget("userTeams", obj, true);
}
public void removeFromUserTeams(Team obj) {
removeToManyTarget("userTeams", obj, true);
}
@SuppressWarnings("unchecked")
public List<Team> getUserTeams() {
return (List<Team>)readProperty("userTeams");
}
}