Channel.java 1.18 KB
package com.hp.cmsz.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;


/**
 * dim_channel_info_t表对应的实体类
 * 
 * @author Guo Xuan
 *
 */
@Entity
@Table(name = "dim_channel_info_t")
public class Channel implements Serializable{

	private Long channelId ;//渠道ID
	private String channelName ;//渠道名称
	private String channelCode ;//渠道编码
	
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="ChannelSequence")
    @SequenceGenerator(name = "ChannelSequence", sequenceName = "dim_channel_info_t_seq", allocationSize=20)
	public Long getChannelId() {
		return channelId;
	}

	public String getChannelName() {
		return channelName;
	}
	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}
	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	public String getChannelCode() {
		return channelCode;
	}
	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}
		
}