package com.bird.entity; import java.io.Serializable; import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
/*
* 这是一个hibernate 联合主键的例子
*/ @Entity
@Table(name = "jc_chnl_group_contri")
@IdClass(value = JcChnlGroupContri.class)
public class JcChnlGroupContri implements Serializable { private static final long serialVersionUID = 1L;
private int channel_id;
private int group_id;
@Id
public int getChannel_id() {
return channel_id;
}
public void setChannel_id(int channel_id) {
this.channel_id = channel_id;
}
@Id
public int getGroup_id() {
return group_id;
}
public void setGroup_id(int group_id) {
this.group_id = group_id;
} }