◎筱米加步枪◎.Blog

Happy coding

No identifier specified for entity错误原因

筱米加步枪 posted @ 2010年8月31日 04:17 in [ 开源框架 ] with tags Hibernate , 16952 阅读

昨日,做Hibernate OR 映射,启动单元测试~忽现错误:

org.hibernate.AnnotationException: No identifier specified for entity

百度得解:

数据库表中没有建主健或者复合主键。后而建立复合主键,问题消失。

pavzi.com 说:
2024年1月26日 20:42

Pavzi.com provides all the news about Gadgets, the Economy, Technology, Business, Finance and many more. The main concept or our aim behind this website has been the will to provide resources with full information on each topic which can be accessed through the Internet. To ensure that every reader gets what is important and worthy about the topic they search and link to hear from us. pavzi.com Our site is a multiple Niche or category website which will ensure to provide information and resources on each and every topic. Some of the evergreen topics you will see on our website are Career, Job Recruitment, Educational, Technology, Reviews and others. We are targeting mostly so it is true that Tech, Finance, and Product Reviews. The only reason we have started this website is to make this site the need for your daily search use.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter