EclipseLink JPA in Eclipse dumb error message
Tuesday, August 11th, 2009 at 9:02 pmSometimes you’re developing an app along with a new database schema to go with it, but you get this: Schema "null" cannot be resolved for table "XXXX".
Window -> Preferences -> Validation, JPA Validator, turn off for Build.
This probably shouldn’t be on by default anyhow, people are most likely going to build new apps from scratch than build new apps to fit old databases; and even if they do build from old, Eclipse’s JPA Tools has a build entities from tables function.
[...] 22. It should now show an error about the schema USER not agreeing with the table Employee. That’s OK. It doesn’t know that we are going to have it create the table automatically too. In Project Explorer window, expand META-INF, and then double click on persistence.xml until it shows up in the editor window. I’d suggest this link for error Scheman cannot be resolved for table: http://adterrasperaspera.com/blog/2009/08/11/eclipselink-jpa-in-eclipse-dumb-error-message [...]