I am afraid that driverClass is correct. If it is changed to be driverClassName, an exception is reported:
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'driverClassName' of bean class [org.springframework.jdbc.datasource.SimpleDriverDataSource]
: Bean property 'driverClassName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1024)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:900)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1358)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1087)
... 66 more
If you’re not getting any data, you might want to either configure logging on Level.FINE or add a debug breakpoint in TableQuery class at the point where the query is executed (around line 404) to get the actual query which SQLContainer generates with your filter.
After you have the query string, verify that this query will return some rows by running it directly against your DB. Please post back with your results, especially if the generated query is malformed or if the results differ when it’s executed directly on the DB vs. through SQLContainer.