package com.acme.structure;


import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;


@MappedSuperclass
public abstract class BaseEntityView extends SuperEntity
{
    //private transient Logger logger=Logger.getLogger(BaseEntity.class);

    protected Integer status = STATUS_ACTIVE;

    @Transient
    abstract public Integer getStatus();

    abstract public void setStatus(Integer Status);

    public final static int STATUS_ACTIVE = 0;
    public final static int STATUS_CANCELED = 1;
    //public static final Object[] args=new Object[0];
    //private transient Logger logger = Logger.getLogger(BaseEntity.class);

    //    @Column(name = "STATUS", nullable=false, precision = 1, scale = 0, columnDefinition = "number(1,0)")//if db is other than oracle remove columnDefinition
    //    public int getStatus()
    //    {
    //        return status;
    //    }
    //
    //    public void setStatus(int status)
    //    {
    //        this.status = status;
    //    }
}
