package com.aipo.orm.model.security.auto;

import java.util.List;

import org.apache.cayenne.CayenneDataObject;

import com.aipo.orm.model.security.TurbineRolePermission;

/**
 * Class _TurbinePermission 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 _TurbinePermission extends CayenneDataObject {

    public static final String OBJECTDATA_PROPERTY = "OBJECTDATA";
    public static final String PERMISSION_NAME_PROPERTY = "permissionName";
    public static final String TURBINE_ROLE_PERMISSION_PROPERTY = "turbineRolePermission";

    public static final String PERMISSION_ID_PK_COLUMN = "PERMISSION_ID";

    public void setOBJECTDATA(byte[] OBJECTDATA) {
        writeProperty("OBJECTDATA", OBJECTDATA);
    }
    public byte[] getOBJECTDATA() {
        return (byte[])readProperty("OBJECTDATA");
    }

    public void setPermissionName(String permissionName) {
        writeProperty("permissionName", permissionName);
    }
    public String getPermissionName() {
        return (String)readProperty("permissionName");
    }

    public void addToTurbineRolePermission(TurbineRolePermission obj) {
        addToManyTarget("turbineRolePermission", obj, true);
    }
    public void removeFromTurbineRolePermission(TurbineRolePermission obj) {
        removeToManyTarget("turbineRolePermission", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<TurbineRolePermission> getTurbineRolePermission() {
        return (List<TurbineRolePermission>)readProperty("turbineRolePermission");
    }


}
