|JPA database schema validation case problems in ClassDescriptor#checkDatabase(...) [message #1058520]
||Tue, 14 May 2013 07:53
| Bernhard M
Registered: May 2013
After migrating to EclipseLink (currently 2.5.0-M6) from Hibernate, I'm trying to get database schema validation to work (again) for my PostgreSQL database.
After some problems, I arrived at an almost working solution by setting 'eclipselink.jpa.uppercase-column-names' to 'true', which validates all tables.
However, when validating fields, ClassDescriptor#checkDatabase(AbstractSession) fails on line #953 because the check 'databaseFields.contains(field.getName())' fails because 'databaseFields' contains all-uppercase field names (as expected) but 'field.getName()' gives a lowercase name.
Can anybody explain why this is? Or even better, why the comparison doesn't look like 'databaseFields.contains(field.getNameForComparisons())' (i.e. uses the "name for comparisons" which indeed is all uppercase)?
Powered by FUDForum
. Page generated in 0.01469 seconds