1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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;
}
}