Caused by: org.hibernate.MappingException: must specify an identifier type:
異常:Caused by: org.hibernate.MappingException: must specify an identifier type:
view plaincopy to clipboardprint?
Caused by: org.hibernate.MappingException: must specify an identifier type: com.xycentre.otms.usermanager.model.OtmsUser
at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:418)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:356)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166)
Caused by: org.hibernate.MappingException: must specify an identifier type: com.xycentre.otms.usermanager.model.User
at org.hibernate.cfg.HbmBinder.bindSimpleId(HbmBinder.java:418)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:356)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:295)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:166)
解決方案:
User.hbm.xml裡id的name沒有寫..
把ID裡面的name屬性寫上,就沒事.
<id name="userID" column="USER_ID" type="java.lang.String">
<generator class="native"></generator>
</id>
相關文章
- Mount: you must specify the filesystem type
- linux 掛載光碟:mount: you must specify the filesystem typeLinux
- org.springframework.beans.factory.BeanNotOfRequiredTypeException must be of typeSpringFrameworkBeanUIException
- Error: PLS-00201: identifier 'DBMS_AQ'must be declaredErrorIDE
- Caused by: java.io.IOException: Target host must not be null, or set in parameters. scheme=nullJavaExceptionNullScheme
- 除錯記錄:The public type must be defined in its own file除錯
- The content of element type "package" must match "(result-types?,interceptors?...Package
- PLS-00201: identifier 'MGMT_TIME_SYNC.STARTUPSYNC' must be declaredIDE
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of typeSpringFrameworkBeanException
- npm報錯 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.Received undefineNPMError
- How to Specify an INDEX Hint oracle官方文件IndexOracle
- Caused by: android.os.Android
- It's a must to ghd
- 直接用 appium 可以連線真機,用 pycharm 執行指令碼時報錯 “'platformVersion' must be of type string”APPPyCharm指令碼Platform
- Dictionary inconsistency caused by CTAS in PARALLELParallel
- XX must be built with ARCUI
- You can‘t specify target table ‘Person‘ for update in FROM clause
- Caused by: Error: ' ' is not a valid resource name characterError
- find: paths must precede expression:Express
- Flutter:VM snapshot must be valid. Check failed: vm. Must be able to initializeFlutterAI
- variable: Type 與 Type variable
- mysql中You can’t specify target table for update in FROM clMySql
- cannot convert (type interface {}) to type int: need type assertion
- PostgreSQL DBA(80) - Object Identifier TypesSQLObjectIDE
- Oracle Custom Support Identifier(CSI)OracleIDE
- Springboot:Caused by: java.lang.NoSuchMethodError...Spring BootJavaError
- Caused by: java.lang.NoClassDefFoundError: javax/persistence/EntityListenersJavaError
- Value Type vs Reference Type in SwiftSwift
- Oracle identifiers :SID (System Identifier)OracleIDE
- ORA-00904: invalid identifierIDE
- Caused by:.NoSuchBeanDefinitionException: No bean named 'userInfoServiceImpl' availableBeanExceptionAI
- Caused by: java.lang.NoClassDefFoundError: javax/servlet/GenericFilterJavaErrorServletFilter
- ORA-01555 caused by SQL statement belowSQL
- Tomcat:Caused by: java.lang.OutOfMemoryError: PermGen space .TomcatJavaError
- Service異常:Service Intent must be explicitIntent
- mongodb報錯:the limit must be specified as a number。MongoDBMIT
- Caused by: java.lang.IllegalArgumentException: port out of range:-1JavaException
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionExceptionSpringFrameworkBeanException