package siprp.database.cayenne.objects.auto;

import java.util.List;

import org.apache.cayenne.CayenneDataObject;

import siprp.database.cayenne.objects.Empresas;

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

    public static final String IMAGE_DATA_PROPERTY = "imageData";
    public static final String NAME_PROPERTY = "name";
    public static final String EMPRESAS_ARRAY_PROPERTY = "empresasArray";

    public static final String ID_PK_COLUMN = "id";

    public void setImageData(byte[] imageData) {
        writeProperty("imageData", imageData);
    }
    public byte[] getImageData() {
        return (byte[])readProperty("imageData");
    }

    public void setName(String name) {
        writeProperty("name", name);
    }
    public String getName() {
        return (String)readProperty("name");
    }

    public void addToEmpresasArray(Empresas obj) {
        addToManyTarget("empresasArray", obj, true);
    }
    public void removeFromEmpresasArray(Empresas obj) {
        removeToManyTarget("empresasArray", obj, true);
    }
    @SuppressWarnings("unchecked")
    public List<Empresas> getEmpresasArray() {
        return (List<Empresas>)readProperty("empresasArray");
    }


}
