Eclipse JPA提示“The entity has no primary key attribute defined” 2017-08-14 by wamdy·0 Comments JPA要求实体必须要有主键,需要在实体中加入@ID相关注解 如果你的实体继承了父类的主键,则需要将父类也加入到JPA管理中,如图: 参考:https://bugs.eclipse.org/bugs/show_bug.cgi?id=361042 分享到:微信新浪微博QQ空间腾讯微博QQ好友linkedin天涯社区复制网址 打赏 微信扫一扫,打赏作者吧~ 分享这篇文章:PrintLike this:Like Loading... 相关