Hibernate提示:No generator named "ID_GENERATOR" is defined in the persistence unit
2017-06-28 23:33
811 查看
一、问题描述
使用Hibernate中的@GeneratedValue值设置为Constants.ID_GENERATOR,Eclipse提示:No generator named "ID_GENERATOR" is defined in the persistence unit
![](http://img.blog.csdn.net/20170628233043044)
二、解决方法
选择Window » Preferences
![](http://img.blog.csdn.net/20170628233211780)
设置Generator is not defined in the persistence unit 为 Warning,点击OK就行了。
使用Hibernate中的@GeneratedValue值设置为Constants.ID_GENERATOR,Eclipse提示:No generator named "ID_GENERATOR" is defined in the persistence unit
二、解决方法
选择Window » Preferences
设置Generator is not defined in the persistence unit 为 Warning,点击OK就行了。
相关文章推荐
- eclipse Duplicate generator named “ID_GENERATOR” defined in this persistence unit
- mpociot/laravel-apidoc-generator There are no commands defined in the "api" namespace.
- There is no WRITEABLE property named 'unitcoefficient' in class 'com.rhyton.pems.core.domain.EnergyM
- Mybatis找不到参数错误:There is no getter for property named 'categoryId' in 'class java.lang.Integer'。
- Exception in thread "main" org.hibernate.TypeMismatchException: Provided id of the wrong type
- org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'id' in 'cla
- mybatis "There is no getter for property named 'xx' in 'class java.lang.String"问题
- Unity3d 提示 "The scripts file name does not match the name of the class defined in the script!"的解决办法
- mybaits错误解决:There is no getter for property named 'id' in class 'java.lang.String'
- currval of sequence "follow_id_seq" is not yet defined in this session
- 交叉调试时arm-linux-gdb提示:No symbol table is loaded. Use the "file" command.
- Ubuntu更新出现"The system is running in low-graphics mode"错误提示的解决办法
- 错误解决:There is no getter for property named 'id' in class 'java.lang.String'
- 使用用sudo时提示"### is not in the sudoers file. This incident will be reported.
- resultMap使用不当导致出现There is no WRITEABLE property named 'student_id' in class 'com.ssi.model.Stud
- Mybatis-There is no getter for property named 'id' in 'class java.lang.String'
- Mybatis-There is no getter for property named 'id' in 'class java.lang.String'
- uploaddify 报错 "ID SWFUpload_0 is already in use. The Flash Object could not be added"
- There is no getter for property named 'id' in 'class java.lang.Integer
- There is no getter for property named 'id' in 'class java.lang.Integer'