@Id
@Column(name="channel_id",nullable = false)
@TableGenerator(name="channelId",allocationSize=1)
@GeneratedValue(strategy=GenerationType.TABLE,generator="channelId")
public Integer getChannelId() {
return channelId;
}
//注意: 继承BaseDao的dao层注入的范型因为 Integer;
原文链接:https://www.f2er.com/oracle/211103.html