org.hibernate.AnnotationException: No identifier specified for entity: com.bjsxt.hibernate.Teacher
来源:互联网 发布:fgo完整数据取消 编辑:程序博客网 时间:2024/05/19 17:10
org.hibernate.AnnotationException: No identifier specified for entity: com.repast.foresetting.entity.Period
@Entity
@Table(name = "Period")
public class Period {
//columns START
private int id;
private String periodId;
@Id
public int getId() {
return id;
}
@Id
public void setId(int id) {
this.id = id;
}
public String getPeriodId() {
return periodId;
}
public void setPeriodId(String periodId) {
this.periodId = periodId;
}
主要是红字的部分,类前要加
@Entity
@Table(name = "Period")
主键id的get和set方法前要加
@Id
- org.hibernate.AnnotationException: No identifier specified for entity: com.bjsxt.hibernate.Teacher
- hibernate错误org.hibernate.AnnotationException: No identifier specified for entity:
- hibernate exception: org.hibernate.AnnotationException: No identifier specified for entity:
- hibernate错误org.hibernate.AnnotationException: No identifier specified for entity:
- org.hibernate.AnnotationException: No identifier specified for entity
- 解决:org.hibernate.annotationexception no identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- org.hibernate.AnnotationException: No identifier specified for entity
- POJ 2251 找到出口 BFS
- javah生成.h文件时提示“找不到类”的解决方法
- Eclipse快捷键大全
- C#的拆箱转换
- cookie 存储
- org.hibernate.AnnotationException: No identifier specified for entity: com.bjsxt.hibernate.Teacher
- 20个热门jQuery的提示和技巧
- 读代码细学内核中断机制-中断的注册
- foreach语句
- STL之queue和stack容器
- 快把Pyhton都忘光了,自己写了几行代码,熟悉以下基本的内容
- 使用GIZA++进行平行语料的词对齐
- HDU 1853 Cyclic Tour KM算法
- 去除重复的,并且可以排序