I still can't get this to work. Either all tables are include or all are excluded - I can't be selective.
For example, here is my hibernate.reveng.xml, and below it, the output of the hibernate ant task. This reveng.xml file does not include the "catch all" excludes, so all tables are included (which I don't want). Further down I show the reveng.xml with the "catch all" excludes and the corresponding output.
===================hibernate.reveng.xml================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<!-- Exclude the sys stuff -->
<table-filter match-name="ALL$.*" exclude="true" />
<table-filter match-name="OL$.*" exclude="true" />
<table-filter match-name="MRV$.*" exclude="true" />
<table-filter match-name="DBA$.*" exclude="true" />
<table-filter match-name="CWM2$.*" exclude="true" />
<!-- catch all and exclude, i.e. Reveng is acting strange or I am tired...-->
<!-- <table-filter match-schema=".*" match-name=".*" exclude="true"/>-->
<!-- Include what I want -->
<table-filter match-schema=".*" match-name="DOES.DBO.DOES_GATEWAYS"/>
</hibernate-reverse-engineering>
===============================================
======================Output=====================
[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] 17:49:23,245 INFO Environment:464 - Hibernate 3.0.5
[hibernatetool] 17:49:23,261 INFO Environment:477 - hibernate.properties not found
[hibernatetool] 17:49:23,261 INFO Environment:510 - using CGLIB reflection optimizer
[hibernatetool] 17:49:23,261 INFO Environment:540 - using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] 17:49:23,464 INFO Configuration:1144 - configuring from file: hibernate.cfg.xml
[hibernatetool] 17:49:23,542 DEBUG DTDEntityResolver:42 - trying to locate
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
[hibernatetool] 17:49:23,542 DEBUG DTDEntityResolver:53 - found
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
[hibernatetool] 17:49:23,636 DEBUG Configuration:1067 - hibernate.connection.provider_class=org.hibernate.connection.C3P0ConnectionProvider
[hibernatetool] 17:49:23,636 DEBUG Configuration:1067 - hibernate.c3p0.min_size=5
[hibernatetool] 17:49:23,636 DEBUG Configuration:1067 - hibernate.c3p0.max_size=20
[hibernatetool] 17:49:23,636 DEBUG Configuration:1067 - hibernate.c3p0.timeout=1800
[hibernatetool] 17:49:23,636 DEBUG Configuration:1067 - hibernate.c3p0.max_statements=50
[hibernatetool] 17:49:23,652 DEBUG Configuration:1067 - connection.driver_class=com.sybase.jdbc2.jdbc.SybDriver
[hibernatetool] 17:49:23,652 DEBUG Configuration:1067 - connection.url=jdbc:sybase:Tds:scsefpsddb01:5001/does
[hibernatetool] 17:49:23,652 DEBUG Configuration:1067 - connection.username=eqprod1
[hibernatetool] 17:49:23,652 DEBUG Configuration:1067 - connection.password=deriv8tives
[hibernatetool] 17:49:23,652 DEBUG Configuration:1067 - dialect=org.hibernate.dialect.SybaseAnywhereDialect
[hibernatetool] 17:49:23,652 DEBUG Configuration:1067 - show_sql=true
[hibernatetool] 17:49:23,652 INFO Configuration:1222 - Configured SessionFactory: null
[hibernatetool] 17:49:23,652 DEBUG Configuration:1223 - properties: {hibernate.connection.password=deriv8tives, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_04\bin, java.vm.version=1.4.2_04-b05, hibernate.connection.username=eqprod1, ant.library.dir=c:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\Edgar\WorkSpaces\DAS\hibernate, java.runtime.version=1.4.2_04-b05, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, hibernate.c3p0.max_statements=50, java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\nbk38on\LOCALS~1\Temp\, line.separator=
[hibernatetool] , java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, ant.home=c:\DevTools\eclipse\plugins\org.apache.ant_1.6.5, sun.java2d.fontpath=, hibernate.c3p0.timeout=1800, java.library.path=C:\WINNT\system32;.;C:\WINNT\System32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Hummingbird\Connectivity\9.00\Accessories\;C:\Program Files\Sybase\DLL;C:\Program FIles\Sybase\Bin;C:\Program Files\Reuters\Login;C:\DevTools\bea\jrockit81sp4_142_05\bin;C:\DevTools\xmlbeans-2.0.0\bin;c:\DevTools\eclipse\configuration\org.eclipse.osgi\bundles\61\1\.cp, java.specification.name=Java Platform API Specification, java.class.version=48.0, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.1, connection.password=deriv8tives, user.home=C:\Documents and Settings\nbk38on, user.timezone=America/New_York, connection.username=eqprod1, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, hibernate.c3p0.min_size=5, hibernate.connection.driver_class=com.sybase.jdbc2.jdbc.SybDriver, show_sql=true, java.class.path=C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-antlr.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bcel.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bsf.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-log4j.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-oro.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-regexp.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-resolver.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-logging.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-net.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-icontract.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jai.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-javamail.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jdepend.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jmf.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jsch.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-junit.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-launcher.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-netrexx.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-nodeps.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-starteam.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-stylebook.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-swing.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-trax.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-vaj.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-weblogic.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xalan1.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xslp.jar;C:\DevTools\eclipse\configuration\org.eclipse.osgi\bundles\6\1\.cp\lib\remoteAnt.jar;C:\DevTools\bea\jrockit81sp4_142_05\lib\tools.jar;C:\DevTools\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.1.0.jar, user.name=nbk38on, hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=C:\Program Files\Java\j2re1.4.2_04, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.SybaseAnywhereDialect, hibernate.connection.url=jdbc:sybase:Tds:scsefpsddb01:5001/does, user.language=en, java.specification.vendor=Sun Microsystems Inc., hibernate.c3p0.max_size=20, awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.4.2_04, java.ext.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\ext, sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_04\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_04\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_04\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_04\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_04\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_04\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_04\classes, java.vendor=Sun Microsystems Inc., connection.driver_class=com.sybase.jdbc2.jdbc.SybDriver, file.separator=\, hibernate.connection.provider_class=org.hibernate.connection.C3P0ConnectionProvider, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, connection.url=jdbc:sybase:Tds:scsefpsddb01:5001/does, dialect=org.hibernate.dialect.SybaseAnywhereDialect, sun.cpu.isalist=pentium i486 i386}
[hibernatetool] 17:49:23,667 INFO OverrideRepository:40 - Override file: C:\Edgar\WorkSpaces\DAS\hibernate\hibernate.reveng.xml
[hibernatetool] 17:49:23,667 DEBUG DTDEntityResolver:42 - trying to locate
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
[hibernatetool] 17:49:23,667 DEBUG DTDEntityResolver:53 - found
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
[hibernatetool] 17:49:23,777 INFO ConnectionProviderFactory:53 - Initializing connection provider: org.hibernate.connection.C3P0ConnectionProvider
[hibernatetool] 17:49:23,792 INFO C3P0ConnectionProvider:50 - C3P0 using driver: com.sybase.jdbc2.jdbc.SybDriver at URL: jdbc:sybase:Tds:scsefpsddb01:5001/does
[hibernatetool] 17:49:23,792 INFO C3P0ConnectionProvider:51 - Connection properties: {user=eqprod1, password=****}
[hibernatetool] 17:49:23,808 INFO C3P0ConnectionProvider:54 - autocommit mode: false
[hibernatetool] Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@149d886 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@1e4853f [ acquireIncrement -> 1, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, idleConnectionTestPeriod -> 0, initialPoolSize -> 5, maxIdleTime -> 1800, maxPoolSize -> 20, maxStatements -> 50, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@68c26c [ description -> null, driverClass -> null, factoryClassLocation -> null, jdbcUrl -> jdbc:sybase:Tds:scsefpsddb01:5001/does, properties -> {user=******, password=******} ] , preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ] , factoryClassLocation -> null, numHelperThreads -> 3, poolOwnerIdentityToken -> 149d886 ]
[hibernatetool] 17:49:25,105 DEBUG SettingsFactory:295 - could not get database version from JDBC metadata
[hibernatetool] 17:49:25,120 INFO SettingsFactory:77 - RDBMS: Adaptive Server Enterprise, version: Adaptive Server Enterprise/12.5.3/EBF 12144/P/Sun_svr4/OS 5.8/ase125x/1883/64-bit/FBO/Fri Nov 12 05:19:26 2004
[hibernatetool] 17:49:25,120 INFO SettingsFactory:78 - JDBC driver: jConnect (TM) for JDBC (TM), version: jConnect (TM) for JDBC(TM)/5.5(Build 25578)/P/EBF12435/JDK13/Tue Feb 22 6:07:39 2005
[hibernatetool] 17:49:25,198 INFO Dialect:92 - Using dialect: org.hibernate.dialect.SybaseAnywhereDialect
[hibernatetool] 17:49:25,339 INFO TransactionFactoryFactory:31 - Using default transaction strategy (direct JDBC transactions)
[hibernatetool] 17:49:25,339 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[hibernatetool] 17:49:25,339 INFO SettingsFactory:125 - Automatic flush during beforeCompletion(): disabled
[hibernatetool] 17:49:25,339 INFO SettingsFactory:129 - Automatic session close at end of transaction: disabled
[hibernatetool] 17:49:25,355 INFO SettingsFactory:144 - Scrollable result sets: enabled
[hibernatetool] 17:49:25,355 DEBUG SettingsFactory:148 - Wrap result sets: disabled
[hibernatetool] 17:49:25,355 INFO SettingsFactory:152 - JDBC3 getGeneratedKeys(): disabled
[hibernatetool] 17:49:25,355 INFO SettingsFactory:160 - Connection release mode: null
[hibernatetool] 17:49:25,355 INFO SettingsFactory:187 - Default batch fetch size: 1
[hibernatetool] 17:49:25,355 INFO SettingsFactory:191 - Generate SQL with comments: disabled
[hibernatetool] 17:49:25,355 INFO SettingsFactory:195 - Order SQL updates by primary key: disabled
[hibernatetool] 17:49:25,355 INFO SettingsFactory:334 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernatetool] 17:49:25,370 INFO ASTQueryTranslatorFactory:21 - Using ASTQueryTranslatorFactory
[hibernatetool] 17:49:25,370 INFO SettingsFactory:203 - Query language substitutions: {}
[hibernatetool] 17:49:25,370 INFO SettingsFactory:209 - Second-level cache: enabled
[hibernatetool] 17:49:25,370 INFO SettingsFactory:213 - Query cache: disabled
[hibernatetool] 17:49:25,386 INFO SettingsFactory:321 - Cache provider: org.hibernate.cache.EhCacheProvider
[hibernatetool] 17:49:25,386 INFO SettingsFactory:228 - Optimize cache for minimal puts: disabled
[hibernatetool] 17:49:25,386 INFO SettingsFactory:237 - Structured second-level cache entries: disabled
[hibernatetool] 17:49:25,402 DEBUG SQLExceptionConverterFactory:52 - Using dialect defined converter
[hibernatetool] 17:49:25,402 INFO SettingsFactory:257 - Echoing all SQL to stdout
[hibernatetool] 17:49:25,402 INFO SettingsFactory:261 - Statistics: disabled
[hibernatetool] 17:49:25,402 INFO SettingsFactory:265 - Deleted entity synthetic identifier rollback: disabled
[hibernatetool] 17:49:25,417 INFO SettingsFactory:279 - Default entity-mode: pojo
[hibernatetool] 17:49:25,448 DEBUG JDBCBinder:604 - Ignoring table sysalternates of type SYSTEM TABLE
[hibernatetool] 17:49:25,448 DEBUG JDBCBinder:604 - Ignoring table sysattributes of type SYSTEM TABLE
[hibernatetool] 17:49:25,448 DEBUG JDBCBinder:604 - Ignoring table syscolumns of type SYSTEM TABLE
[hibernatetool] 17:49:25,448 DEBUG JDBCBinder:604 - Ignoring table syscomments of type SYSTEM TABLE
[hibernatetool] 17:49:25,448 DEBUG JDBCBinder:604 - Ignoring table sysconstraints of type SYSTEM TABLE
[hibernatetool] 17:49:25,448 DEBUG JDBCBinder:604 - Ignoring table sysdepends of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysgams of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysindexes of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysjars of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table syskeys of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table syslogs of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysobjects of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table syspartitions of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysprocedures of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysprotects of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysqueryplans of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysreferences of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysroles of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table syssegments of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysstatistics of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table systabstats of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table systhresholds of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table systypes of type SYSTEM TABLE
[hibernatetool] 17:49:25,464 DEBUG JDBCBinder:604 - Ignoring table sysusermessages of type SYSTEM TABLE
[hibernatetool] 17:49:25,480 DEBUG JDBCBinder:604 - Ignoring table sysusers of type SYSTEM TABLE
[hibernatetool] 17:49:25,480 DEBUG JDBCBinder:604 - Ignoring table sysxtypes of type SYSTEM TABLE
[hibernatetool] 17:49:25,480 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.dba) of type TABLE
[hibernatetool] 17:49:25,480 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.does_arch) of type TABLE
[hibernatetool] 17:49:25,480 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.does_gateways) of type TABLE
[hibernatetool] 17:49:25,480 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.does_tran_action_descr) of type TABLE
[hibernatetool] 17:49:25,480 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.hts_xact_history) of type TABLE
[hibernatetool] 17:49:25,480 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.rs_lastcommit) of type TABLE
[hibernatetool] 17:49:25,480 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.rs_threads) of type TABLE
[hibernatetool] 17:49:25,495 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.d) of type VIEW
[hibernatetool] 17:49:25,495 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.view_does_arch) of type VIEW
[hibernatetool] 17:49:25,495 DEBUG JDBCBinder:600 - Adding table org.hibernate.mapping.Table(does.dbo.view_does_arch_exec) of type VIEW
[hibernatetool] 17:49:25,495 DEBUG JDBCBinder:731 - Finding columns for does.dbo.d
[hibernatetool] 17:49:25,714 WARN JDBCBinder:999 - The JDBC driver didn't report any primary key columns in d
[hibernatetool] 17:49:25,730 DEBUG JDBCBinder:731 - Finding columns for does.dbo.dba
[hibernatetool] 17:49:25,855 WARN JDBCBinder:999 - The JDBC driver didn't report any primary key columns in dba
[hibernatetool] 17:49:25,870 DEBUG JDBCBinder:731 - Finding columns for does.dbo.does_arch
[hibernatetool] 17:49:26,527 WARN JDBCBinder:999 - The JDBC driver didn't report any primary key columns in does_arch
[hibernatetool] 17:49:26,558 DEBUG JDBCBinder:731 - Finding columns for does.dbo.does_gateways
[hibernatetool] 17:49:26,573 DEBUG JDBCBinder:1001 - primary key for org.hibernate.mapping.Table(does.dbo.does_gateways) -> org.hibernate.mapping.PrimaryKey(does_gateways[org.hibernate.mapping.Column(gtw_id)]) as does_gatew_7200055961
[hibernatetool] 17:49:26,589 DEBUG JDBCBinder:731 - Finding columns for does.dbo.does_tran_action_descr
[hibernatetool] 17:49:26,605 WARN JDBCBinder:999 - The JDBC driver didn't report any primary key columns in does_tran_action_descr
[hibernatetool] 17:49:26,620 DEBUG JDBCBinder:731 - Finding columns for does.dbo.hts_xact_history
[hibernatetool] 17:49:26,652 WARN JDBCBinder:999 - The JDBC driver didn't report any primary key columns in hts_xact_history
[hibernatetool] 17:49:26,667 DEBUG JDBCBinder:731 - Finding columns for does.dbo.rs_lastcommit
[hibernatetool] 17:49:26,698 WARN JDBCBinder:999 - The JDBC driver didn't report any primary key columns in rs_lastcommit
[hibernatetool] 17:49:26,698 DEBUG JDBCBinder:731 - Finding columns for does.dbo.rs_threads
[hibernatetool] 17:49:26,730 WARN JDBCBinder:999 - The JDBC driver didn't report any primary key columns in rs_threads
[hibernatetool] 17:49:26,730 DEBUG JDBCBinder:731 - Finding columns for does.dbo.view_does_arch
[hibernatetool] 17:49:26,808 WARN JDBCBinder:999 - The JDBC driver didn't report any primary key columns in view_does_arch
[hibernatetool] 17:49:26,823 DEBUG JDBCBinder:731 - Finding columns for does.dbo.view_does_arch_exec
[hibernatetool] 17:49:26,886 WARN JDBCBinder:999 - The JDBC driver didn't report any primary key columns in view_does_arch_exec
[hibernatetool] 17:49:26,902 DEBUG JDBCBinder:1020 - Calling getExportedKeys on org.hibernate.mapping.Table(does.dbo.d)
BUILD FAILED
C:\Edgar\WorkSpaces\DAS\hibernate\build.xml:18: org.hibernate.exception.GenericJDBCException: Reading from database
===============================================
Now here is the reveng.xml with the "catch all", and below it the output. Note that, eventhough the build is successful, nothing has been generated.
===================reveng.xml=====================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<!-- Exclude the sys stuff -->
<table-filter match-name="ALL$.*" exclude="true" />
<table-filter match-name="OL$.*" exclude="true" />
<table-filter match-name="MRV$.*" exclude="true" />
<table-filter match-name="DBA$.*" exclude="true" />
<table-filter match-name="CWM2$.*" exclude="true" />
<!-- Include what I want -->
<table-filter match-schema=".*" match-name="DOES.DBO.DOES_GATEWAYS"/>
<!-- catch all and exclude, i.e. Reveng is acting strange or I am tired...-->
<table-filter match-schema=".*" match-name=".*" exclude="true"/>
</hibernate-reverse-engineering>
===============================================
===================Output========================
[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] 17:54:46,523 INFO Environment:464 - Hibernate 3.0.5
[hibernatetool] 17:54:46,538 INFO Environment:477 - hibernate.properties not found
[hibernatetool] 17:54:46,554 INFO Environment:510 - using CGLIB reflection optimizer
[hibernatetool] 17:54:46,554 INFO Environment:540 - using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] 17:54:46,741 INFO Configuration:1144 - configuring from file: hibernate.cfg.xml
[hibernatetool] 17:54:46,835 DEBUG DTDEntityResolver:42 - trying to locate
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
[hibernatetool] 17:54:46,835 DEBUG DTDEntityResolver:53 - found
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
[hibernatetool] 17:54:46,913 DEBUG Configuration:1067 - hibernate.connection.provider_class=org.hibernate.connection.C3P0ConnectionProvider
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - hibernate.c3p0.min_size=5
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - hibernate.c3p0.max_size=20
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - hibernate.c3p0.timeout=1800
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - hibernate.c3p0.max_statements=50
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - connection.driver_class=com.sybase.jdbc2.jdbc.SybDriver
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - connection.url=jdbc:sybase:Tds:scsefpsddb01:5001/does
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - connection.username=eqprod1
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - connection.password=deriv8tives
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - dialect=org.hibernate.dialect.SybaseAnywhereDialect
[hibernatetool] 17:54:46,929 DEBUG Configuration:1067 - show_sql=true
[hibernatetool] 17:54:46,944 INFO Configuration:1222 - Configured SessionFactory: null
[hibernatetool] 17:54:46,944 DEBUG Configuration:1223 - properties: {hibernate.connection.password=deriv8tives, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_04\bin, java.vm.version=1.4.2_04-b05, hibernate.connection.username=eqprod1, ant.library.dir=c:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\Edgar\WorkSpaces\DAS\hibernate, java.runtime.version=1.4.2_04-b05, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, hibernate.c3p0.max_statements=50, java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\endorsed, os.arch=x86, java.io.tmpdir=C:\DOCUME~1\nbk38on\LOCALS~1\Temp\, line.separator=
[hibernatetool] , java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows XP, ant.home=c:\DevTools\eclipse\plugins\org.apache.ant_1.6.5, sun.java2d.fontpath=, hibernate.c3p0.timeout=1800, java.library.path=C:\WINNT\system32;.;C:\WINNT\System32;C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Hummingbird\Connectivity\9.00\Accessories\;C:\Program Files\Sybase\DLL;C:\Program FIles\Sybase\Bin;C:\Program Files\Reuters\Login;C:\DevTools\bea\jrockit81sp4_142_05\bin;C:\DevTools\xmlbeans-2.0.0\bin;c:\DevTools\eclipse\configuration\org.eclipse.osgi\bundles\61\1\.cp, java.specification.name=Java Platform API Specification, java.class.version=48.0, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.1, connection.password=deriv8tives, user.home=C:\Documents and Settings\nbk38on, user.timezone=America/New_York, connection.username=eqprod1, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, hibernate.c3p0.min_size=5, hibernate.connection.driver_class=com.sybase.jdbc2.jdbc.SybDriver, show_sql=true, java.class.path=C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-antlr.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bcel.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bsf.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-log4j.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-oro.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-regexp.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-resolver.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-logging.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-net.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-icontract.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jai.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-javamail.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jdepend.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jmf.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jsch.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-junit.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-launcher.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-netrexx.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-nodeps.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-starteam.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-stylebook.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-swing.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-trax.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-vaj.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-weblogic.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xalan1.jar;C:\DevTools\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xslp.jar;C:\DevTools\eclipse\configuration\org.eclipse.osgi\bundles\6\1\.cp\lib\remoteAnt.jar;C:\DevTools\bea\jrockit81sp4_142_05\lib\tools.jar;C:\DevTools\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.1.0.jar, user.name=nbk38on, hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=C:\Program Files\Java\j2re1.4.2_04, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.SybaseAnywhereDialect, hibernate.connection.url=jdbc:sybase:Tds:scsefpsddb01:5001/does, user.language=en, java.specification.vendor=Sun Microsystems Inc., hibernate.c3p0.max_size=20, awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.4.2_04, java.ext.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\ext, sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_04\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_04\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_04\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_04\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_04\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_04\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_04\classes, java.vendor=Sun Microsystems Inc., connection.driver_class=com.sybase.jdbc2.jdbc.SybDriver, file.separator=\, hibernate.connection.provider_class=org.hibernate.connection.C3P0ConnectionProvider, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, connection.url=jdbc:sybase:Tds:scsefpsddb01:5001/does, dialect=org.hibernate.dialect.SybaseAnywhereDialect, sun.cpu.isalist=pentium i486 i386}
[hibernatetool] 17:54:46,944 INFO OverrideRepository:40 - Override file: C:\Edgar\WorkSpaces\DAS\hibernate\hibernate.reveng.xml
[hibernatetool] 17:54:46,944 DEBUG DTDEntityResolver:42 - trying to locate
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
[hibernatetool] 17:54:46,944 DEBUG DTDEntityResolver:53 - found
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
[hibernatetool] 17:54:47,054 INFO ConnectionProviderFactory:53 - Initializing connection provider: org.hibernate.connection.C3P0ConnectionProvider
[hibernatetool] 17:54:47,085 INFO C3P0ConnectionProvider:50 - C3P0 using driver: com.sybase.jdbc2.jdbc.SybDriver at URL: jdbc:sybase:Tds:scsefpsddb01:5001/does
[hibernatetool] 17:54:47,085 INFO C3P0ConnectionProvider:51 - Connection properties: {user=eqprod1, password=****}
[hibernatetool] 17:54:47,085 INFO C3P0ConnectionProvider:54 - autocommit mode: false
[hibernatetool] Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@149d886 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@1e4853f [ acquireIncrement -> 1, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, idleConnectionTestPeriod -> 0, initialPoolSize -> 5, maxIdleTime -> 1800, maxPoolSize -> 20, maxStatements -> 50, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@68c26c [ description -> null, driverClass -> null, factoryClassLocation -> null, jdbcUrl -> jdbc:sybase:Tds:scsefpsddb01:5001/does, properties -> {user=******, password=******} ] , preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ] , factoryClassLocation -> null, numHelperThreads -> 3, poolOwnerIdentityToken -> 149d886 ]
[hibernatetool] 17:54:48,476 DEBUG SettingsFactory:295 - could not get database version from JDBC metadata
[hibernatetool] 17:54:48,491 INFO SettingsFactory:77 - RDBMS: Adaptive Server Enterprise, version: Adaptive Server Enterprise/12.5.3/EBF 12144/P/Sun_svr4/OS 5.8/ase125x/1883/64-bit/FBO/Fri Nov 12 05:19:26 2004
[hibernatetool] 17:54:48,491 INFO SettingsFactory:78 - JDBC driver: jConnect (TM) for JDBC (TM), version: jConnect (TM) for JDBC(TM)/5.5(Build 25578)/P/EBF12435/JDK13/Tue Feb 22 6:07:39 2005
[hibernatetool] 17:54:48,569 INFO Dialect:92 - Using dialect: org.hibernate.dialect.SybaseAnywhereDialect
[hibernatetool] 17:54:48,694 INFO TransactionFactoryFactory:31 - Using default transaction strategy (direct JDBC transactions)
[hibernatetool] 17:54:48,694 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[hibernatetool] 17:54:48,710 INFO SettingsFactory:125 - Automatic flush during beforeCompletion(): disabled
[hibernatetool] 17:54:48,710 INFO SettingsFactory:129 - Automatic session close at end of transaction: disabled
[hibernatetool] 17:54:48,710 INFO SettingsFactory:144 - Scrollable result sets: enabled
[hibernatetool] 17:54:48,710 DEBUG SettingsFactory:148 - Wrap result sets: disabled
[hibernatetool] 17:54:48,710 INFO SettingsFactory:152 - JDBC3 getGeneratedKeys(): disabled
[hibernatetool] 17:54:48,710 INFO SettingsFactory:160 - Connection release mode: null
[hibernatetool] 17:54:48,710 INFO SettingsFactory:187 - Default batch fetch size: 1
[hibernatetool] 17:54:48,710 INFO SettingsFactory:191 - Generate SQL with comments: disabled
[hibernatetool] 17:54:48,726 INFO SettingsFactory:195 - Order SQL updates by primary key: disabled
[hibernatetool] 17:54:48,726 INFO SettingsFactory:334 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernatetool] 17:54:48,741 INFO ASTQueryTranslatorFactory:21 - Using ASTQueryTranslatorFactory
[hibernatetool] 17:54:48,741 INFO SettingsFactory:203 - Query language substitutions: {}
[hibernatetool] 17:54:48,741 INFO SettingsFactory:209 - Second-level cache: enabled
[hibernatetool] 17:54:48,741 INFO SettingsFactory:213 - Query cache: disabled
[hibernatetool] 17:54:48,741 INFO SettingsFactory:321 - Cache provider: org.hibernate.cache.EhCacheProvider
[hibernatetool] 17:54:48,741 INFO SettingsFactory:228 - Optimize cache for minimal puts: disabled
[hibernatetool] 17:54:48,741 INFO SettingsFactory:237 - Structured second-level cache entries: disabled
[hibernatetool] 17:54:48,757 DEBUG SQLExceptionConverterFactory:52 - Using dialect defined converter
[hibernatetool] 17:54:48,772 INFO SettingsFactory:257 - Echoing all SQL to stdout
[hibernatetool] 17:54:48,772 INFO SettingsFactory:261 - Statistics: disabled
[hibernatetool] 17:54:48,772 INFO SettingsFactory:265 - Deleted entity synthetic identifier rollback: disabled
[hibernatetool] 17:54:48,772 INFO SettingsFactory:279 - Default entity-mode: pojo
[hibernatetool] 17:54:48,819 INFO Configuration:875 - processing extends queue
[hibernatetool] 17:54:48,819 INFO Configuration:879 - processing collection mappings
[hibernatetool] 17:54:48,819 INFO Configuration:888 - processing association property references
[hibernatetool] 17:54:48,819 INFO Configuration:917 - processing foreign key constraints
[hibernatetool] 17:54:49,054 DEBUG template:91 - CommonsLogLogSystem name is 'org.hibernate.tool.hbm2x.template'
[hibernatetool] 17:54:49,054 INFO template:88 - **************************************************************
[hibernatetool] 17:54:49,054 INFO template:88 - Starting Jakarta Velocity v1.4
[hibernatetool] 17:54:49,054 INFO template:88 - RuntimeInstance initializing.
[hibernatetool] 17:54:49,054 INFO template:88 - Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
[hibernatetool] 17:54:49,054 INFO template:88 - Trying to use logger class org.apache.velocity.tools.generic.log.CommonsLogLogSystem
[hibernatetool] 17:54:49,054 INFO template:88 - Using logger class org.apache.velocity.tools.generic.log.CommonsLogLogSystem
[hibernatetool] 17:54:49,069 INFO template:88 - Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[hibernatetool] 17:54:49,085 INFO template:88 - Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.FileResourceLoader
[hibernatetool] 17:54:49,085 INFO template:88 - FileResourceLoader : initialization starting.
[hibernatetool] 17:54:49,085 INFO template:88 - FileResourceLoader : adding path '.'
[hibernatetool] 17:54:49,085 INFO template:88 - FileResourceLoader : initialization complete.
[hibernatetool] 17:54:49,085 INFO template:88 - Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
[hibernatetool] 17:54:49,085 INFO template:88 - ClasspathResourceLoader : initialization starting.
[hibernatetool] 17:54:49,085 INFO template:88 - ClasspathResourceLoader : initialization complete.
[hibernatetool] 17:54:49,101 INFO template:88 - ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[hibernatetool] 17:54:49,101 INFO template:88 - Default ResourceManager initialization complete.
[hibernatetool] 17:54:49,101 INFO template:88 - Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[hibernatetool] 17:54:49,116 INFO template:88 - Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[hibernatetool] 17:54:49,132 INFO template:88 - Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[hibernatetool] 17:54:49,132 INFO template:88 - Loaded System Directive: org.apache.velocity.runtime.directive.Include
[hibernatetool] 17:54:49,147 INFO template:88 - Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[hibernatetool] 17:54:49,351 INFO template:88 - Created: 20 parsers.
[hibernatetool] 17:54:49,351 INFO template:88 - Velocimacro : initialization starting.
[hibernatetool] 17:54:49,351 INFO template:88 - Velocimacro : allowInline = true : VMs can be defined inline in templates
[hibernatetool] 17:54:49,351 INFO template:88 - Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[hibernatetool] 17:54:49,351 INFO template:88 - Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[hibernatetool] 17:54:49,366 INFO template:88 - Velocimacro : messages on : VM system will output logging messages
[hibernatetool] 17:54:49,366 INFO template:88 - Velocimacro : autoload off : VM system will not automatically reload global library macros
[hibernatetool] 17:54:49,366 INFO template:88 - Velocimacro : initialization complete.
[hibernatetool] 17:54:49,366 INFO template:88 - Velocity successfully started.
BUILD SUCCESSFUL
===============================================