org.hibernate.AnnotationException: No identifier specified for entity: net.mingyang.modules.system.ConfigGroup
    org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState.java:277)
    org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:224)
    org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:775)
    org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:3788)
    org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3742)
    org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1410)
    org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1844)
    org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1928)
    ......

原来是没有定义@Id。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-02-11
  • 2021-04-28
  • 2021-10-22
  • 2021-05-11
  • 2022-12-23
猜你喜欢
  • 2022-02-08
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案