您的位置:首页 > 编程语言 > Java开发

The Table <table name> cannot be found on the database

2011-01-28 17:34 513 查看
使用JPA时提示错误 The Table <table name> cannot be found on the database ,

或者提示错误  The Column <Column name> cannot be found on table <Table name>

但测试运行,又可以通过!                       

产生这个问题的原因是项目的Java持久化设置问题,解决的办法很简单。

1.选中项目名称

2.右键菜单->properties->MyEclipse->Java Persistence,选中Enable database metadata analysis的选项框,同时检查是不是正确的驱动和数据库,然后点击Refresh Metadata按钮刷新后确定即可。

【取消勾选框】,也可以不出现这样的错误提示!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐