/*
 * Powered By [柳丰]
 * Web Site: http://www.trend.com.cn
 */

package com.trend.hbny.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javax.persistence.*;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.trend.hbny.model.*;
import com.trend.hbny.dao.*;
import com.trend.hbny.service.*;

/**
 * @author neolf email:neolf(a)foxmail.com
 * @version 1.0
 * @since 1.0
 */


public class ELineBasicinfo extends BaseEntity {
	
	//alias
	public static final String TABLE_ALIAS = "ELineBasicinfo";
	public static final String ALIAS_CO_NO = "coNo";
	public static final String ALIAS_L_G_FLAG = "lGFlag";
	public static final String ALIAS_COMPANY = "company";
	public static final String ALIAS_POWER_STATION = "powerStation";
	public static final String ALIAS_METER_NO = "meterNo";
	public static final String ALIAS_NAME = "name";
	public static final String ALIAS_CAPACITY = "capacity";
	public static final String ALIAS_P_MULTIPLYING = "pMultiplying";
	public static final String ALIAS_Q_MULTIPLYING = "qMultiplying";
	public static final String ALIAS_ID = "id";
	
	//date formats
	
	//columns START
	private java.lang.String coNo;
	private java.lang.String lGFlag;
	private java.lang.String company;
	private java.lang.String powerStation;
	private java.lang.String meterNo;
	private java.lang.String name;
	private java.lang.Double capacity;
	private java.lang.Double pMultiplying;
	private java.lang.Double qMultiplying;
	private java.lang.Long id;
	//columns END
	
	//注意： spring_jdbc的MetadataCreateUtils.fromTable(Entity.class) 可以读取JPA annotation的标注信息
	//现支持 @Id,@Column,@Table标注

	public ELineBasicinfo(){
	}

	public ELineBasicinfo(
		java.lang.Long id
	){
		this.id = id;
	}

	public java.lang.String getCoNo() {
		return this.coNo;
	}
	
	public void setCoNo(java.lang.String value) {
		this.coNo = value;
	}
	
	public java.lang.String getlGFlag() {
		return this.lGFlag;
	}
	
	public void setlGFlag(java.lang.String value) {
		this.lGFlag = value;
	}
	
	public java.lang.String getCompany() {
		return this.company;
	}
	
	public void setCompany(java.lang.String value) {
		this.company = value;
	}
	
	public java.lang.String getPowerStation() {
		return this.powerStation;
	}
	
	public void setPowerStation(java.lang.String value) {
		this.powerStation = value;
	}
	
	public java.lang.String getMeterNo() {
		return this.meterNo;
	}
	
	public void setMeterNo(java.lang.String value) {
		this.meterNo = value;
	}
	
	public java.lang.String getName() {
		return this.name;
	}
	
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	public java.lang.Double getCapacity() {
		return this.capacity;
	}
	
	public void setCapacity(java.lang.Double value) {
		this.capacity = value;
	}
	
	public java.lang.Double getpMultiplying() {
		return this.pMultiplying;
	}
	
	public void setpMultiplying(java.lang.Double value) {
		this.pMultiplying = value;
	}
	
	public java.lang.Double getqMultiplying() {
		return this.qMultiplying;
	}
	
	public void setqMultiplying(java.lang.Double value) {
		this.qMultiplying = value;
	}
	
	@Id
	public java.lang.Long getId() {
		return this.id;
	}
	
	public void setId(java.lang.Long value) {
		this.id = value;
	}
	

	public String toString() {
		return new ToStringBuilder(this)
			.append("CoNo",getCoNo())
			.append("LGFlag",getlGFlag())
			.append("Company",getCompany())
			.append("PowerStation",getPowerStation())
			.append("MeterNo",getMeterNo())
			.append("Name",getName())
			.append("Capacity",getCapacity())
			.append("PMultiplying",getpMultiplying())
			.append("QMultiplying",getqMultiplying())
			.append("Id",getId())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getCoNo())
			.append(getlGFlag())
			.append(getCompany())
			.append(getPowerStation())
			.append(getMeterNo())
			.append(getName())
			.append(getCapacity())
			.append(getpMultiplying())
			.append(getqMultiplying())
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ELineBasicinfo == false) return false;
		if(this == obj) return true;
		ELineBasicinfo other = (ELineBasicinfo)obj;
		return new EqualsBuilder()
			.append(getCoNo(),other.getCoNo())
			.append(getlGFlag(),other.getlGFlag())
			.append(getCompany(),other.getCompany())
			.append(getPowerStation(),other.getPowerStation())
			.append(getMeterNo(),other.getMeterNo())
			.append(getName(),other.getName())
			.append(getCapacity(),other.getCapacity())
			.append(getpMultiplying(),other.getpMultiplying())
			.append(getqMultiplying(),other.getqMultiplying())
			.append(getId(),other.getId())
			.isEquals();
	}
}

