/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2010 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.everis.budget.conf;

import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;

import java.lang.Boolean;
import java.lang.String;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Entity class for entity EVEBUCO_OBJECTIVE (stored in table EVEBUCO_OBJECTIVE).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class OBJECTIVE extends BaseOBObject {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "EVEBUCO_OBJECTIVE";
    public static final String ENTITY_NAME = "EVEBUCO_OBJECTIVE";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_ENTIDAD = "entidad";
    public static final String PROPERTY_ORGANIZACIN = "organizacin";
    public static final String PROPERTY_ACTIVO = "activo";
    public static final String PROPERTY_FECHACREACIN = "fechaCreacin";
    public static final String PROPERTY_CREADOPOR = "creadoPor";
    public static final String PROPERTY_ACTUALIZADO = "actualizado";
    public static final String PROPERTY_ACTUALIZADOPOR = "actualizadoPor";
    public static final String PROPERTY_IDENTIFICADOR = "identificador";
    public static final String PROPERTY_NOMBRE = "nombre";
    public static final String PROPERTY_DESCRIPCIN = "descripcin";
    public static final String PROPERTY_EVEBUCOOBJECTIVEFUNCCLASSLIST =
        "eVEBUCOOBJECTIVEFUNCCLASSList";

    public OBJECTIVE() {
        setDefaultValue(PROPERTY_ACTIVO, true);
        setDefaultValue(PROPERTY_FECHACREACIN, new Date());
        setDefaultValue(PROPERTY_ACTUALIZADO, new Date());
        setDefaultValue(PROPERTY_EVEBUCOOBJECTIVEFUNCCLASSLIST,
            new ArrayList<Object>());
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public Client getEntidad() {
        return (Client) get(PROPERTY_ENTIDAD);
    }

    public void setEntidad(Client entidad) {
        set(PROPERTY_ENTIDAD, entidad);
    }

    public Organization getOrganizacin() {
        return (Organization) get(PROPERTY_ORGANIZACIN);
    }

    public void setOrganizacin(Organization organizacin) {
        set(PROPERTY_ORGANIZACIN, organizacin);
    }

    public Boolean isActivo() {
        return (Boolean) get(PROPERTY_ACTIVO);
    }

    public void setActivo(Boolean activo) {
        set(PROPERTY_ACTIVO, activo);
    }

    public Date getFechaCreacin() {
        return (Date) get(PROPERTY_FECHACREACIN);
    }

    public void setFechaCreacin(Date fechaCreacin) {
        set(PROPERTY_FECHACREACIN, fechaCreacin);
    }

    public User getCreadoPor() {
        return (User) get(PROPERTY_CREADOPOR);
    }

    public void setCreadoPor(User creadoPor) {
        set(PROPERTY_CREADOPOR, creadoPor);
    }

    public Date getActualizado() {
        return (Date) get(PROPERTY_ACTUALIZADO);
    }

    public void setActualizado(Date actualizado) {
        set(PROPERTY_ACTUALIZADO, actualizado);
    }

    public User getActualizadoPor() {
        return (User) get(PROPERTY_ACTUALIZADOPOR);
    }

    public void setActualizadoPor(User actualizadoPor) {
        set(PROPERTY_ACTUALIZADOPOR, actualizadoPor);
    }

    public String getIdentificador() {
        return (String) get(PROPERTY_IDENTIFICADOR);
    }

    public void setIdentificador(String identificador) {
        set(PROPERTY_IDENTIFICADOR, identificador);
    }

    public String getNombre() {
        return (String) get(PROPERTY_NOMBRE);
    }

    public void setNombre(String nombre) {
        set(PROPERTY_NOMBRE, nombre);
    }

    public String getDescripcin() {
        return (String) get(PROPERTY_DESCRIPCIN);
    }

    public void setDescripcin(String descripcin) {
        set(PROPERTY_DESCRIPCIN, descripcin);
    }

    @SuppressWarnings("unchecked")
    public List<com.everis.budget.conf.OBJECTIVEFUNCCLASS> getEVEBUCOOBJECTIVEFUNCCLASSList() {
        return (List<com.everis.budget.conf.OBJECTIVEFUNCCLASS>) get(PROPERTY_EVEBUCOOBJECTIVEFUNCCLASSLIST);
    }

    public void setEVEBUCOOBJECTIVEFUNCCLASSList(
        List<com.everis.budget.conf.OBJECTIVEFUNCCLASS> eVEBUCOOBJECTIVEFUNCCLASSList) {
        set(PROPERTY_EVEBUCOOBJECTIVEFUNCCLASSLIST,
            eVEBUCOOBJECTIVEFUNCCLASSList);
    }
}
