使用JPA时提示错误 The table XXX cannot be found on the database ,产生这个问题的原因是项目的Java持久化设置问题,解决的办法很简单。
1.选中项目名称
2.右键菜单->properties->MyEclipse->Java Persistence栏目,选中Enable database metadata analysis的选项框,同时检查是不是正确的驱动和数据库,然后点击Refresh Metadata按钮刷新后显示"The validation completed with no errors or warnings."确定即可。