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按钮刷新后确定即可。
【取消勾选框】,也可以不出现这样的错误提示!
或者提示错误 The Column <Column name> cannot be found on table <Table name>
但测试运行,又可以通过!
产生这个问题的原因是项目的Java持久化设置问题,解决的办法很简单。
1.选中项目名称
2.右键菜单->properties->MyEclipse->Java Persistence,选中Enable database metadata analysis的选项框,同时检查是不是正确的驱动和数据库,然后点击Refresh Metadata按钮刷新后确定即可。
【取消勾选框】,也可以不出现这样的错误提示!
相关文章推荐
- yii提示The table "xxx" for active record class "DistAR" cannot be found in the database
- MyEclipse Error: The Table cannot be found on the database
- MyEclipse: The Table cannot be found on the database
- MyEclipse Error: The Table cannot be found on the database
- MyEclipse Error: The Table cannot be found on the database
- the type List is not generic; it cannot be parameterized with arguments<T>解决办法
- MATLAB7.0安装后显示The element type "name" must be terminated by the matching end-tag "</name>".
- The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)
- The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)
- A definition for the symbol '<symbolName>' could not be located
- The type List is not generic; it cannot be parameterized with arguments <Integer>
- The type JComboBox is not generic; it cannot be parameterized with arguments <String>错误
- <iOS>cannot be opened because the project file cannot be parsed. Xcode工程文件打不开..
- The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)
- 调试记录:The public type <<classname>> must be defined in its own file
- xcode 弹出的错误 1 <Xcode cannot launch apps on the simulated device “iPhone 5s”, as it is cur>
- Note on <C# 3.0 UNLEASHED With the .NET Framework 3.5> - 01
- MATLAB7.0安装后显示The element type "name" must be terminated by the matching end-tag "</name>".
- error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found
- The MagicAjax HttpModule is not included in web.config. Add [<httpModules><add name="MagicAjax" type