package com.uc.entity;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;

/**
 * 基本Entity
 * @team IT Team
 * @author  renmb
 * @version 1.0
 * @time 2016-03-10
 *
 * @param <T>
 */
public abstract class BaseEntity implements Serializable,Cloneable {

    /**
     * 
     */
    private static final long serialVersionUID = 5983695342897355824L;
    @JSONField(deserialize = false, serialize = false)
    public static final String DEL_FLAG_NORMAL="0";
//    @JSONField(serialize=false)
//    protected String id;
    
//    @JSONField(serialize=false)
//    protected String dbprefix=GConstants.getValue("db.table.prefix", "");// 数据库表前缀
    
//    public String getId() {
//        return id;
//    }
//    public void setId(String id) {
//        this.id = id;
//    }
    @JSONField(deserialize = false, serialize = false)
    public String getDbprefix() {
        
        return "foc_";//GConstants.getValue("db.table.prefix", "");// 数据库表前缀;
    }
//    public void setDbprefix(String dbprefix) {
//        this.dbprefix = dbprefix;
//    }
    @JSONField(deserialize=false, serialize=false)
    public String getDbName(){
        return "mysql";//GConstants.getValue("jdbc.type");
    }
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
