OK, well I still haven't found a solution to this yet so in order to make some progres I have created my tables in the public schema. However, now it seems that hibernate is somehow using a cached version of that schema and so generates pojos for the original tables in the public schema but ignores my new tables!
Arrgghhhh! (cached copy not yet stale; using cached.)
How can I tell hibernate to ignore its cache?
N.B. I have tried setting hibernate.cache.use_query_cache to false. Debug output below:
Thanks,
Damian
[code]2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [events.event_id t:BIGINT l:255 p:19 s:2 n:false id:false] to [long]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [events.event_date t:TIMESTAMP l:29 p:19 s:2 n:true id:false] to [timestamp]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [events.title t:VARCHAR l:255 p:19 s:2 n:true id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - No default type found for [events.loc t:OTHER l:255 p:19 s:2 n:true id:false] falling back to [serializable]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [geometry_columns.f_table_catalog t:VARCHAR l:256 p:19 s:2 n:false id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [geometry_columns.f_table_schema t:VARCHAR l:256 p:19 s:2 n:false id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [geometry_columns.f_table_name t:VARCHAR l:256 p:19 s:2 n:false id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [geometry_columns.f_geometry_column t:VARCHAR l:256 p:19 s:2 n:false id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [geometry_columns.coord_dimension t:INTEGER l:255 p:19 s:2 n:false id:false] to [int]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [geometry_columns.srid t:INTEGER l:255 p:19 s:2 n:false id:false] to [int]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [geometry_columns.type t:VARCHAR l:30 p:19 s:2 n:false id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [gtest.id t:INTEGER l:255 p:19 s:2 n:true id:false] to [java.lang.Integer]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [gtest.name t:VARCHAR l:20 p:19 s:2 n:true id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - No default type found for [gtest.geom t:OTHER l:255 p:19 s:2 n:true id:false] falling back to [serializable]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [spatial_ref_sys.srid t:INTEGER l:255 p:19 s:2 n:false id:false] to [int]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [spatial_ref_sys.auth_name t:VARCHAR l:256 p:19 s:2 n:true id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [spatial_ref_sys.auth_srid t:INTEGER l:255 p:19 s:2 n:true id:false] to [java.lang.Integer]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [spatial_ref_sys.srtext t:VARCHAR l:2048 p:19 s:2 n:true id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type found for [spatial_ref_sys.proj4text t:VARCHAR l:2048 p:19 s:2 n:true id:false] to [string]
2009-12-10 10:14:08,812 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/Pojo.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,812 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/Pojo.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/pojo/Pojo.ftl2009-12-10 10:14:08,828 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/PojoTypeDeclaration.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,828 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/PojoTypeDeclaration.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/poj ... ration.ftl2009-12-10 10:14:08,828 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/Ejb3TypeDeclaration.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,828 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/Ejb3TypeDeclaration.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/poj ... ration.ftl2009-12-10 10:14:08,828 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/PojoFields.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,828 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/PojoFields.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/pojo/PojoFields.ftl2009-12-10 10:14:08,828 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/PojoConstructors.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,828 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/PojoConstructors.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/poj ... uctors.ftl2009-12-10 10:14:08,828 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/PojoPropertyAccessors.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/PojoPropertyAccessors.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/poj ... essors.ftl2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/GetPropertyAnnotation.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/GetPropertyAnnotation.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/poj ... tation.ftl2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/Ejb3PropertyGetAnnotation.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/Ejb3PropertyGetAnnotation.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/poj ... tation.ftl2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - pojo/GetPropertyAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - pojo/Ejb3PropertyGetAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - pojo/GetPropertyAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - pojo/Ejb3PropertyGetAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - pojo/GetPropertyAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - pojo/Ejb3PropertyGetAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/PojoToString.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/PojoToString.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/poj ... String.ftl2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/PojoEqualsHashcode.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/PojoEqualsHashcode.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/poj ... shcode.ftl2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Could not find template in cache, creating new one; id=[pojo/PojoExtraClassCode.ftl[en_GB,Cp1252,parsed] ]
2009-12-10 10:14:08,843 DEBUG Worker-14 freemarker.cache - Compiling FreeMarker template pojo/PojoExtraClassCode.ftl[en_GB,Cp1252,parsed] from
bundleresource://871.fwk22522451:19/poj ... ssCode.ftl2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/Pojo.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/PojoTypeDeclaration.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/Ejb3TypeDeclaration.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/PojoFields.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/PojoConstructors.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/PojoPropertyAccessors.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/GetPropertyAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/Ejb3PropertyGetAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/GetPropertyAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/Ejb3PropertyGetAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/GetPropertyAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
2009-12-10 10:14:08,859 DEBUG Worker-14 freemarker.cache - pojo/Ejb3PropertyGetAnnotation.ftl[en_GB,Cp1252,parsed] cached copy not yet stale; using cached.
etc...
[code]