-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: table-filter exclude not work, anybody can help me?
PostPosted: Wed Oct 18, 2006 9:44 pm 
Newbie

Joined: Wed Oct 18, 2006 3:49 am
Posts: 10
Environment: windows xp sp2, jdk 1.4.2, eclipse 3.1.2, hibernate tools beta8, hibernate 3.2 ga

I used ant task provided by hibernate-tools like the below:
<target name="default" description="generate hbm">
<delete dir="./generate"/>
<mkdir dir="./generate"/>
<hibernatetool destdir="./generate">
<jdbcconfiguration
configurationfile="./metadata/hibernate.cfg.xml"
revengfile="./metadata/hibernate.reveng.xml"
packagename="net.ema.examples.sa"
detectmanytomany="true"
detectoptimisticlock="true">
</jdbcconfiguration>
<hbm2hbmxml destdir="./generate" />
</hibernatetool>
</target>

In hibernate.reveng.xml, I defined a table-filter rule like the below:
<!-- include tables -->
<table-filter match-name="T_SA_*" exclude="false"/>
but if I added these lines, I would get none genreated hbm files, otherwise if I didn't add, it worked. And BTW in my database schema all tables's name was prfixed with "T_SA_".
anybody can help me?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 2:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what is in your cfg.xml file ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 4:23 am 
Newbie

Joined: Wed Oct 18, 2006 3:49 am
Posts: 10
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory>
<!--property name="connection.datasource">java:comp/env/jdbc/psms</property-->
<property name="show_sql">false</property>
<property name="use_outer_join">true</property>
<property name="cache.provider_class">org.hibernate.cache.OSCacheProvider</property>

<property name="connection.driver_class">oracle.jdbc.OracleDriver</property>
<property name="connection.username">titan</property>
<property name="connection.password">titan</property>
<property name="connection.url">jdbc:oracle:thin:@192.168.0.80:1521:ora9</property>

<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="jdbc.fetch_size">100</property>
<property name="jdbc.batch_size">50</property>
<property name="hibernate.query.substitutions">true='1',false='0'</property>
</session-factory>

</hibernate-configuration>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 4:26 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so you don't have any default_catalog and default_schema specified anywhere ?

then it is truely weird that the table-filter doesn't work.

What gets actually generated when you don't have it there ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 5:18 am 
Newbie

Joined: Wed Oct 18, 2006 3:49 am
Posts: 10
Hi, Max, thanks for your reply.
Now my hibernate.cfg.xml file is like the below, but remains not working:-(
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory>
<!--property name="connection.datasource">java:comp/env/jdbc/psms</property-->
<property name="show_sql">false</property>
<property name="use_outer_join">true</property>
<property name="cache.provider_class">org.hibernate.cache.OSCacheProvider</property>

<property name="default_schema">titan</property>
<property name="default_catalog">titan</property>

<property name="connection.driver_class">oracle.jdbc.OracleDriver</property>
<property name="connection.username">titan</property>
<property name="connection.password">titan</property>
<property name="connection.url">jdbc:oracle:thin:@192.168.0.80:1521:ora9</property>

<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="jdbc.fetch_size">100</property>
<property name="jdbc.batch_size">50</property>
<property name="hibernate.query.substitutions">true='1',false='0'</property>
</session-factory>

</hibernate-configuration>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 5:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
i didn't say you should put default schema/catalog in there ;)

I asked what it actually generates when you don't have it and neither the tablefilter specifiied.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 9:46 pm 
Newbie

Joined: Wed Oct 18, 2006 3:49 am
Posts: 10
Sorry, Max.
If I didn't put the default schema/catalog and table-filter there, I would got the generated hbm files for all tables in 'titan' schema.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 20, 2006 1:31 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
could you show me the contents of one of those files? (especially one of those you want to have included)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 22, 2006 9:20 pm 
Newbie

Joined: Wed Oct 18, 2006 3:49 am
Posts: 10
Hi, Max, Sorry for no reply in weekend:-)
The below is generated T_SA_USER's mapping file, if I don't put the table-filter element in rev.xml.

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 2006-10-23 9:21:10 by Hibernate Tools 3.2.0.beta8 -->
<hibernate-mapping>
    <class name="net.ema.examples.sa.persistence.UserModel" table="T_SA_USER" schema="TITAN">
        <id name="userId" type="java.lang.Long">
            <column name="USER_ID" scale="0" />
            <generator class="assigned" />
        </id>
        <many-to-one name="employeeModel" class="net.ema.examples.sa.persistence.EmployeeModel" fetch="select">
            <column name="EMPLOYEE_ID" scale="0" />
        </many-to-one>
        <property name="logonName" type="string">
            <column name="LOGON_NAME" length="60" />
        </property>
        <property name="password" type="string">
            <column name="PASSWORD" length="80" />
        </property>
        <property name="isOrgAdmin" type="java.lang.Boolean">
            <column name="IS_ORG_ADMIN" precision="1" scale="0" />
        </property>
        <property name="remark" type="string">
            <column name="REMARK" length="400" />
        </property>
        <property name="createDate" type="java.util.Date">
            <column name="CREATE_DATE" length="11" />
        </property>
        <property name="status" type="string">
            <column name="STATUS" length="2" />
        </property>
        <set name="roleModels" inverse="true" table="T_SA_USER_ROLE">
            <key>
                <column name="USER_ID" scale="0" not-null="true" />
            </key>
            <many-to-many entity-name="net.ema.examples.sa.persistence.RoleModel">
                <column name="ROLE_ID" scale="0" not-null="true" />
            </many-to-many>
        </set>
    </class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 22, 2006 11:25 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the only way i can explain why you don't get any output is that you had default schema/catalog set to e.g. titan which are case sensitive on many db's thus if you had set it to TITAN it would have worked.

have you tried *just* setting the table-filter ?

if it still fails please try and enable debug logging and show the output.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 24, 2006 1:36 am 
Newbie

Joined: Wed Oct 18, 2006 3:49 am
Posts: 10
hi, max, not worked.
this is the output log when debug enable.
[code]
D:\users\Jacky\Develop\test\hibernatetest>ant
Buildfile: build.xml

default:
[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse
engineering)
[hibernatetool] 1. task: hbm2hbmxml (Generates a set of hbm.xml files)
[hibernatetool] 2006-10-24 13:38:26,151 INFO <Environment> Hibernate 3.2.0
[hibernatetool] 2006-10-24 13:38:26,166 INFO <Environment> hibernate.properties
not found
[hibernatetool] 2006-10-24 13:38:26,182 INFO <Environment> Bytecode provider na
me : cglib
[hibernatetool] 2006-10-24 13:38:26,198 INFO <Environment> using JDK 1.4 java.s
ql.Timestamp handling
[hibernatetool] 2006-10-24 13:38:26,463 INFO <Configuration> configuring from f
ile: hibernate.cfg.xml
[hibernatetool] 2006-10-24 13:38:26,635 DEBUG <DTDEntityResolver> trying to reso
lve system-id [http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd]

[hibernatetool] 2006-10-24 13:38:26,635 DEBUG <DTDEntityResolver> recognized hib
ernate namespace; attempting to resolve on classpath under org/hibernate/
[hibernatetool] 2006-10-24 13:38:26,635 DEBUG <DTDEntityResolver> located [http:
//hibernate.sourceforge.net/hibernate-configuration-3.0.dtd] in classpath
[hibernatetool] 2006-10-24 13:38:26,729 DEBUG <Configuration> show_sql=false
[hibernatetool] 2006-10-24 13:38:26,729 DEBUG <Configuration> use_outer_join=tru
e
[hibernatetool] 2006-10-24 13:38:26,729 DEBUG <Configuration> cache.provider_cla
ss=org.hibernate.cache.OSCacheProvider
[hibernatetool] 2006-10-24 13:38:26,744 DEBUG <Configuration> default_schema=TIT
AN
[hibernatetool] 2006-10-24 13:38:26,744 DEBUG <Configuration> default_catalog=TI
TAN
[hibernatetool] 2006-10-24 13:38:26,744 DEBUG <Configuration> connection.driver_
class=oracle.jdbc.OracleDriver
[hibernatetool] 2006-10-24 13:38:26,760 DEBUG <Configuration> connection.usernam
e=TITAN
[hibernatetool] 2006-10-24 13:38:26,760 DEBUG <Configuration> connection.passwor
d=TITAN
[hibernatetool] 2006-10-24 13:38:26,760 DEBUG <Configuration> connection.url=jdb
c:oracle:thin:@192.168.0.80:1521:ora9
[hibernatetool] 2006-10-24 13:38:26,760 DEBUG <Configuration> dialect=org.hibern
ate.dialect.Oracle9Dialect
[hibernatetool] 2006-10-24 13:38:26,776 DEBUG <Configuration> jdbc.fetch_size=10
0
[hibernatetool] 2006-10-24 13:38:26,776 DEBUG <Configuration> jdbc.batch_size=50

[hibernatetool] 2006-10-24 13:38:26,776 DEBUG <Configuration> hibernate.query.su
bstitutions=true='1',false='0'
[hibernatetool] 2006-10-24 13:38:26,791 INFO <Configuration> Configured Session
Factory: null
[hibernatetool] 2006-10-24 13:38:26,791 DEBUG <Configuration> properties: {java.
vendor=Sun Microsystems Inc., show_sql=false, hibernate.connection.url=jdbc:orac
le:thin:@192.168.0.80:1521:ora9, sun.management.compiler=HotSpot Client Compiler
, os.name=Windows XP, sun.boot.class.path=C:\jdk1.5.0\jre\lib\rt.jar;C:\jdk1.5.0
\jre\lib\i18n.jar;C:\jdk1.5.0\jre\lib\sunrsasign.jar;C:\jdk1.5.0\jre\lib\jsse.ja
r;C:\jdk1.5.0\jre\lib\jce.jar;C:\jdk1.5.0\jre\lib\charsets.jar;C:\jdk1.5.0\jre\c
lasses, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc.,
ant.home=D:\tools\apache-ant-1.6.5, java.runtime.version=1.5.0_05-b05, default_
schema=TITAN, hibernate.cache.provider_class=org.hibernate.cache.OSCacheProvider
, user.name=jhua, connection.driver_class=oracle.jdbc.OracleDriver, jdbc.fetch_s
ize=100, user.language=zh, sun.boot.library.path=C:\jdk1.5.0\jre\bin, dialect=or
g.hibernate.dialect.Oracle9Dialect, java.version=1.5.0_05, user.timezone=Asia/Sh
anghai, jdbc.batch_size=50, sun.arch.data.model=32, hibernate.use_outer_join=tru
e, java.endorsed.dirs=C:\jdk1.5.0\jre\lib\endorsed, sun.cpu.isalist=, sun.jnu.en
coding=GBK, file.encoding.pkg=sun.io, file.separator=\, java.specification.name=
Java Platform API Specification, java.class.version=49.0, user.country=CN, conne
ction.url=jdbc:oracle:thin:@192.168.0.80:1521:ora9, java.home=C:\jdk1.5.0\jre, j
ava.vm.info=mixed mode, sharing, hibernate.jdbc.fetch_size=100, os.version=5.1,
path.separator=;, connection.password=TITAN, java.vm.version=1.5.0_05-b05, hiber
nate.connection.password=TITAN, user.variant=, ant.library.dir=D:\tools\apache-a
nt-1.6.5\lib, hibernate.jdbc.batch_size=50, java.awt.printerjob=sun.awt.windows.
WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.
WToolkit, hibernate.connection.username=TITAN, user.home=C:\Documents and Settin
gs\jhua, hibernate.query.substitutions=true='1',false='0', java.specification.ve
ndor=Sun Microsystems Inc., java.library.path=C:\jdk1.5.0\bin;.;C:\WINDOWS\syste
m32;C:\WINDOWS;C:\IBM\WebSphere MQ\Java\lib;C:\jdk1.5.0\bin;D:\oracle\ora92\bin;
C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\W
INDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\tools\maven-2.0.4\bin;D:\
tools\apache-ant-1.6.5\bin;D:\tools\jad;C:\Program Files\QuickTime\QTSystem\;C:\
Program Files\Rational\common;D:\tools;C:\IBM\WebSphere MQ\bin;C:\IBM\WebSphere
MQ\WEMPS\bin;D:\php5;C:\Program Files\MySQL\MySQL Server 5.0\bin;appfusegen-1.8.
2;C:\Program Files\Sun\jstudio_ent8\AppServ8.1UR2\bin;D:\appserver\bea\weblogic9
2\common\bin, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_
class=oracle.jdbc.OracleDriver, connection.username=TITAN, java.vm.vendor=Sun Mi
crosystems Inc., hibernate.dialect=org.hibernate.dialect.Oracle9Dialect, java.ru
ntime.name=Java(TM) 2 Runtime Environment, Standard Edition, java.class.path=D:\
tools\apache-ant-1.6.5\lib\ant-launcher.jar;C:\IBM\WebSphere MQ\Java\lib\provide
rutil.jar;C:\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\IBM\WebSphere MQ\Jav
a\lib\ldap.jar;C:\IBM\WebSphere MQ\Java\lib\jta.jar;C:\IBM\WebSphere MQ\Java\lib
\jndi.jar;C:\IBM\WebSphere MQ\Java\lib\jms.jar;C:\IBM\WebSphere MQ\Java\lib\conn
ector.jar;C:\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\IBM\WebSphere MQ\Java\li
b\com.ibm.mq.jar;D:\tools\apache-ant-1.6.5\lib\ant-antlr.jar;D:\tools\apache-ant
-1.6.5\lib\ant-apache-bcel.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-bsf.jar;
D:\tools\apache-ant-1.6.5\lib\ant-apache-log4j.jar;D:\tools\apache-ant-1.6.5\lib
\ant-apache-oro.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-regexp.jar;D:\tools
\apache-ant-1.6.5\lib\ant-apache-resolver.jar;D:\tools\apache-ant-1.6.5\lib\ant-
commons-logging.jar;D:\tools\apache-ant-1.6.5\lib\ant-commons-net.jar;D:\tools\a
pache-ant-1.6.5\lib\ant-icontract.jar;D:\tools\apache-ant-1.6.5\lib\ant-jai.jar;
D:\tools\apache-ant-1.6.5\lib\ant-javamail.jar;D:\tools\apache-ant-1.6.5\lib\ant
-jdepend.jar;D:\tools\apache-ant-1.6.5\lib\ant-jmf.jar;D:\tools\apache-ant-1.6.5
\lib\ant-jsch.jar;D:\tools\apache-ant-1.6.5\lib\ant-junit.jar;D:\tools\apache-an
t-1.6.5\lib\ant-launcher.jar;D:\tools\apache-ant-1.6.5\lib\ant-netrexx.jar;D:\to
ols\apache-ant-1.6.5\lib\ant-nodeps.jar;D:\tools\apache-ant-1.6.5\lib\ant-starte
am.jar;D:\tools\apache-ant-1.6.5\lib\ant-stylebook.jar;D:\tools\apache-ant-1.6.5
\lib\ant-swing.jar;D:\tools\apache-ant-1.6.5\lib\ant-trax.jar;D:\tools\apache-an
t-1.6.5\lib\ant-vaj.jar;D:\tools\apache-ant-1.6.5\lib\ant-weblogic.jar;D:\tools\
apache-ant-1.6.5\lib\ant-xalan1.jar;D:\tools\apache-ant-1.6.5\lib\ant-xslp.jar;D
:\tools\apache-ant-1.6.5\lib\ant.jar;D:\tools\apache-ant-1.6.5\lib\junit-3.8.1.j
ar;D:\tools\apache-ant-1.6.5\lib\xercesImpl.jar;D:\tools\apache-ant-1.6.5\lib\xm
l-apis.jar;C:\jdk1.5.0\lib\tools.jar, hibernate.bytecode.use_reflection_optimize
r=false, use_outer_join=true, java.vm.specification.name=Java Virtual Machine Sp
ecification, java.vm.specification.version=1.0, sun.cpu.endian=little, sun.os.pa
tch.level=Service Pack 2, java.io.tmpdir=C:\DOCUME~1\jhua\LOCALS~1\Temp\, java.v
endor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, default_catalog=TITAN,
hibernate.default_schema=TITAN, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32G
raphicsEnvironment, java.ext.dirs=C:\jdk1.5.0\jre\lib\ext, user.dir=D:\users\Jac
ky\Develop\test\hibernatetest, line.separator=
[hibernatetool] , java.vm.name=Java HotSpot(TM) Client VM, cache.provider_class=
org.hibernate.cache.OSCacheProvider, file.encoding=GBK, hibernate.default_catalo
g=TITAN, java.specification.version=1.5, hibernate.show_sql=false}
[hibernatetool] 2006-10-24 13:38:27,119 INFO <OverrideRepository> Override file
: D:\users\Jacky\Develop\test\hibernatetest\metadata\hibernate.reveng.xml
[hibernatetool] 2006-10-24 13:38:27,135 DEBUG <DTDEntityResolver> trying to reso
lve system-id [http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.
0.dtd]
[hibernatetool] 2006-10-24 13:38:27,135 DEBUG <DTDEntityResolver> recognized hib
ernate namespace; attempting to resolve on classpath under org/hibernate/
[hibernatetool] 2006-10-24 13:38:27,150 DEBUG <DTDEntityResolver> located [http:
//hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd] in classpath
[hibernatetool] 2006-10-24 13:38:27,416 INFO <DriverManagerConnectionProvider>
Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] 2006-10-24 13:38:27,416 INFO <DriverManagerConnectionProvider>
Hibernate connection pool size: 20
[hibernatetool] 2006-10-24 13:38:27,416 INFO <DriverManagerConnectionProvider>
autocommit mode: false
[hibernatetool] 2006-10-24 13:38:27,572 INFO <DriverManagerConnectionProvider>
using driver: oracle.jdbc.OracleDriver at URL: jdbc:oracle:thin:@192.168.0.80:15
21:ora9
[hibernatetool] 2006-10-24 13:38:27,572 INFO <DriverManagerConnectionProvider>
connection properties: {user=TITAN, password=TITAN}
[hibernatetool] 2006-10-24 13:38:27,572 DEBUG <DriverManagerConnectionProvider>
total checked-out connections: 0
[hibernatetool] 2006-10-24 13:38:27,588 DEBUG <DriverManagerConnectionProvider>
opening new JDBC connection
[hibernatetool] 2006-10-24 13:38:29,103 DEBUG <DriverManagerConnectionProvider>
created connection to: jdbc:oracle:thin:@192.168.0.80:1521:ora9, Isolation Level
: 2
[hibernatetool] 2006-10-24 13:38:29,119 INFO <SettingsFactory> RDBMS: Oracle, v
ersion: Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
[hibernatetool] With the Partitioning, OLAP and Oracle Data Mining options
[hibernatetool] JServer Release 9.2.0.1.0 - Production
[hibernatetool] 2006-10-24 13:38:29,119 INFO <SettingsFactory> JDBC driver: Ora
cle JDBC driver, version: 9.2.0.8.0
[hibernatetool] 2006-10-24 13:38:29,134 DEBUG <DriverManagerConnectionProvider>
returning connection to pool, pool size: 1
[hibernatetool] 2006-10-24 13:38:29,213 INFO <Dialect> Using dialect: org.hiber
nate.dialect.Oracle9Dialect
[hibernatetool] 2006-10-24 13:38:29,384 INFO <TransactionFactoryFactory> Using
default transaction strategy (direct JDBC transactions)
[hibernatetool] 2006-10-24 13:38:29,400 INFO <TransactionManagerLookupFactory>
No TransactionManagerLookup configured (in JTA environment, use of read-write or
transactional second-level cache is not recommended)
[hibernatetool] 2006-10-24 13:38:29,416 INFO <SettingsFactory> Automatic flush
during beforeCompletion(): disabled
[hibernatetool] 2006-10-24 13:38:29,416 INFO <SettingsFactory> Automatic sessio
n close at end of transaction: disabled
[hibernatetool] 2006-10-24 13:38:29,416 INFO <SettingsFactory> JDBC batch size:
50
[hibernatetool] 2006-10-24 13:38:29,416 INFO <SettingsFactory> JDBC batch updat
es for versioned data: disabled
[hibernatetool] 2006-10-24 13:38:29,431 INFO <SettingsFactory> Scrollable resul
t sets: enabled
[hibernatetool] 2006-10-24 13:38:29,431 DEBUG <SettingsFactory> Wrap result sets
: disabled
[hibernatetool] 2006-10-24 13:38:29,431 INFO <SettingsFactory> JDBC3 getGenerat
edKeys(): disabled
[hibernatetool] 2006-10-24 13:38:29,447 INFO <SettingsFactory> JDBC result set
fetch size: 100
[hibernatetool] 2006-10-24 13:38:29,447 INFO <SettingsFactory> Connection relea
se mode: auto
[hibernatetool] 2006-10-24 13:38:29,447 INFO <SettingsFactory> Default schema:
TITAN
[hibernatetool] 2006-10-24 13:38:29,462 INFO <SettingsFactory> Default catalog:
TITAN
[hibernatetool] 2006-10-24 13:38:29,462 INFO <SettingsFactory> Default batch fe
tch size: 1
[hibernatetool] 2006-10-24 13:38:29,478 INFO <SettingsFactory> Generate SQL wit
h comments: disabled
[hibernatetool] 2006-10-24 13:38:29,478 INFO <SettingsFactory> Order SQL update
s by primary key: disabled
[hibernatetool] 2006-10-24 13:38:29,478 INFO <SettingsFactory> Query translator
: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernatetool] 2006-10-24 13:38:29,494 INFO <ASTQueryTranslatorFactory> Using
ASTQueryTranslatorFactory
[hibernatetool] 2006-10-24 13:38:29,494 INFO <SettingsFactory> Query language s
ubstitutions: {true='1', false='0'}
[hibernatetool] 2006-10-24 13:38:29,509 INFO <SettingsFactory> JPA-QL strict co
mpliance: disabled
[hibernatetool] 2006-10-24 13:38:29,509 INFO <SettingsFactory> Second-level cac
he: enabled
[hibernatetool] 2006-10-24 13:38:29,509 INFO <SettingsFactory> Query cache: dis
abled
[hibernatetool] 2006-10-24 13:38:29,525 INFO <SettingsFactory> Cache provider:
org.hibernate.cache.OSCacheProvider
[hibernatetool] 2006-10-24 13:38:29,541 ERROR <Config> Error reading /oscache.pr
operties in CacheAdministrator.loadProps() java.lang.NullPointerException
[hibernatetool] 2006-10-24 13:38:29,541 ERROR <Config> Ensure the /oscache.prope
rties file is readable and in your classpath.
[hibernatetool] 2006-10-24 13:38:29,541 INFO <SettingsFactory> Optimize cache f
or minimal puts: disabled
[hibernatetool] 2006-10-24 13:38:29,556 INFO <SettingsFactory> Structured secon
d-level cache entries: disabled
[hibernatetool] 2006-10-24 13:38:29,556 DEBUG <SQLExceptionConverterFactory> Usi
ng dialect defined converter
[hibernatetool] 2006-10-24 13:38:29,587 INFO <SettingsFactory> Statistics: disa
bled
[hibernatetool] 2006-10-24 13:38:29,587 INFO <SettingsFactory> Deleted entity s
ynthetic identifier rollback: disabled
[hibernatetool] 2006-10-24 13:38:29,603 INFO <SettingsFactory> Default entity-m
ode: pojo
[hibernatetool] 2006-10-24 13:38:29,666 DEBUG <JDBCMetaDataDialect> getTables(TI
TAN.TITAN.null)
[hibernatetool] 2006-10-24 13:38:29,666 DEBUG <DriverManagerConnectionProvider>
total checked-out connections: 0
[hibernatetool] 2006-10-24 13:38:29,681 DEBUG <DriverManagerConnectionProvider>
using pooled JDBC connection, pool size: 0
[hibernatetool] 2006-10-24 13:38:29,822 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_BI_ORGANIZATION) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,837 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_COM_LOV) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,837 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_COM_PREFERENCES) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,837 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_COM_PREFERENCE_ITEM) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,837 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_COM_SEQUENCE) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,853 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_COM_SERIAL) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,853 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SALES_CUSTOMERS) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,853 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SALES_LINE_ITEMS) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,853 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SALES_ORDERS) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,869 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SALES_SKUS) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,869 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SA_EMPLOYEE) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,884 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SA_PRIVILEGE) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,884 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SA_ROLE) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,884 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SA_ROLE_PRIVILEGE) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,884 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SA_USER) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,900 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SA_USER_ROLE) excluded by strategy
[hibernatetool] 2006-10-24 13:38:29,900 DEBUG <DriverManagerConnectionProvider>
returning connection to pool, pool size: 1
[hibernatetool] 2006-10-24 13:38:29,900 INFO <DriverManagerConnectionProvider>
cleaning up connection pool: jdbc:oracle:thin:@192.168.0.80:1521:ora9
[hibernatetool] 2006-10-24 13:38:29,915 DEBUG <Configuration> processing extends
queue
[hibernatetool] 2006-10-24 13:38:29,915 DEBUG <Configuration> processing collect
ion mappings
[hibernatetool] 2006-10-24 13:38:29,915 DEBUG <Configuration> processing native
query and ResultSetMapping mappings
[hibernatetool] 2006-10-24 13:38:29,915 DEBUG <Configuration> processing associa
tion property references
[hibernatetool] 2006-10-24 13:38:29,931 DEBUG <Configuration> processing foreign
key constraints
[hibernatetool] 2006-10-24 13:38:29,947 DEBUG <HibernateMappingExporter> org.hib
ernate.tool.hbm2x.HibernateMappingExporter outputdir:D:\users\Jacky\Develop\test
\hibernatetest\generate\hbm path: [D:\users\Jacky\Develop\test\hibernatetest\tem
plate]
[hibernatetool] 2006-10-24 13:38:30,228 INFO <Version> Hibernate Tools 3.2.0.be
ta8
[hibernatetool] 2006-10-24 13:38:30,244 DEBUG <TemplateHelper> putInContext expo
rter=org.hibernate.tool.hbm2x.HibernateMappingExporter@c09554
[hibernatetool] 2006-10-24 13:38:30,244 DEBUG <TemplateHelper> putInContext c2h=
org.hibernate.tool.hbm2x.Cfg2HbmTool@18bf072
[hibernatetool] 2006-10-24 13:38:30,259 DEBUG <TemplateHelper> putInContext c2j=
org.hibernate.tool.hbm2x.Cfg2JavaTool@56f631
[hibernatetool] 2006-10-24 13:38:30,259 DEBUG <TemplateHelper> putInContext outp
utdir=D:\users\Jacky\Develop\test\hibernatetest\generate\hbm
[hibernatetool] 2006-10-24 13:38:30,259 DEBUG <TemplateHelper> putInContext temp
late_path=[Ljava.lang.String;@13d28e3
[hibernatetool] 2006-10-24 13:38:30,259 DEBUG <TemplateHelper> putInContext java
.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:30,275 DEBUG <TemplateHelper> putInContext show
_sql=false
[hibernatetool] 2006-10-24 13:38:30,275 DEBUG <TemplateHelper> putInContext hibe
rnate.connection.url=jdbc:oracle:thin:@192.168.0.80:1521:ora9
[hibernatetool] 2006-10-24 13:38:30,275 DEBUG <TemplateHelper> putInContext sun.
management.compiler=HotSpot Client Compiler
[hibernatetool] 2006-10-24 13:38:30,275 DEBUG <TemplateHelper> putInContext os.n
ame=Windows XP
[hibernatetool] 2006-10-24 13:38:30,290 DEBUG <TemplateHelper> putInContext sun.
boot.class.path=C:\jdk1.5.0\jre\lib\rt.jar;C:\jdk1.5.0\jre\lib\i18n.jar;C:\jdk1.
5.0\jre\lib\sunrsasign.jar;C:\jdk1.5.0\jre\lib\jsse.jar;C:\jdk1.5.0\jre\lib\jce.
jar;C:\jdk1.5.0\jre\lib\charsets.jar;C:\jdk1.5.0\jre\classes
[hibernatetool] 2006-10-24 13:38:30,290 DEBUG <TemplateHelper> putInContext sun.
desktop=windows
[hibernatetool] 2006-10-24 13:38:30,290 DEBUG <TemplateHelper> putInContext java
.vm.specification.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:30,306 DEBUG <TemplateHelper> putInContext ant.
home=D:\tools\apache-ant-1.6.5
[hibernatetool] 2006-10-24 13:38:30,306 DEBUG <TemplateHelper> putInContext java
.runtime.version=1.5.0_05-b05
[hibernatetool] 2006-10-24 13:38:30,306 DEBUG <TemplateHelper> putInContext defa
ult_schema=TITAN
[hibernatetool] 2006-10-24 13:38:30,306 DEBUG <TemplateHelper> putInContext hibe
rnate.cache.provider_class=org.hibernate.cache.OSCacheProvider
[hibernatetool] 2006-10-24 13:38:30,322 DEBUG <TemplateHelper> putInContext user
.name=jhua
[hibernatetool] 2006-10-24 13:38:30,322 DEBUG <TemplateHelper> putInContext conn
ection.driver_class=oracle.jdbc.OracleDriver
[hibernatetool] 2006-10-24 13:38:30,322 DEBUG <TemplateHelper> putInContext jdbc
.fetch_size=100
[hibernatetool] 2006-10-24 13:38:30,322 DEBUG <TemplateHelper> putInContext user
.language=zh
[hibernatetool] 2006-10-24 13:38:30,337 DEBUG <TemplateHelper> putInContext sun.
boot.library.path=C:\jdk1.5.0\jre\bin
[hibernatetool] 2006-10-24 13:38:30,337 DEBUG <TemplateHelper> putInContext dial
ect=org.hibernate.dialect.Oracle9Dialect
[hibernatetool] 2006-10-24 13:38:30,337 DEBUG <TemplateHelper> putInContext java
.version=1.5.0_05
[hibernatetool] 2006-10-24 13:38:30,337 DEBUG <TemplateHelper> putInContext user
.timezone=Asia/Shanghai
[hibernatetool] 2006-10-24 13:38:30,353 DEBUG <TemplateHelper> putInContext jdbc
.batch_size=50
[hibernatetool] 2006-10-24 13:38:30,353 DEBUG <TemplateHelper> putInContext sun.
arch.data.model=32
[hibernatetool] 2006-10-24 13:38:30,353 DEBUG <TemplateHelper> putInContext hibe
rnate.use_outer_join=true
[hibernatetool] 2006-10-24 13:38:30,353 DEBUG <TemplateHelper> putInContext java
.endorsed.dirs=C:\jdk1.5.0\jre\lib\endorsed
[hibernatetool] 2006-10-24 13:38:30,369 DEBUG <TemplateHelper> putInContext sun.
cpu.isalist=
[hibernatetool] 2006-10-24 13:38:30,369 DEBUG <TemplateHelper> putInContext sun.
jnu.encoding=GBK
[hibernatetool] 2006-10-24 13:38:30,369 DEBUG <TemplateHelper> putInContext file
.encoding.pkg=sun.io
[hibernatetool] 2006-10-24 13:38:30,369 DEBUG <TemplateHelper> putInContext file
.separator=\
[hibernatetool] 2006-10-24 13:38:30,384 DEBUG <TemplateHelper> putInContext java
.specification.name=Java Platform API Specification
[hibernatetool] 2006-10-24 13:38:30,384 DEBUG <TemplateHelper> putInContext java
.class.version=49.0
[hibernatetool] 2006-10-24 13:38:30,384 DEBUG <TemplateHelper> putInContext user
.country=CN
[hibernatetool] 2006-10-24 13:38:30,400 DEBUG <TemplateHelper> putInContext conn
ection.url=jdbc:oracle:thin:@192.168.0.80:1521:ora9
[hibernatetool] 2006-10-24 13:38:30,400 DEBUG <TemplateHelper> putInContext java
.home=C:\jdk1.5.0\jre
[hibernatetool] 2006-10-24 13:38:30,400 DEBUG <TemplateHelper> putInContext java
.vm.info=mixed mode, sharing
[hibernatetool] 2006-10-24 13:38:30,400 DEBUG <TemplateHelper> putInContext os.v
ersion=5.1
[hibernatetool] 2006-10-24 13:38:30,415 DEBUG <TemplateHelper> putInContext hibe
rnate.jdbc.fetch_size=100
[hibernatetool] 2006-10-24 13:38:30,415 DEBUG <TemplateHelper> putInContext path
.separator=;
[hibernatetool] 2006-10-24 13:38:30,415 DEBUG <TemplateHelper> putInContext conn
ection.password=TITAN
[hibernatetool] 2006-10-24 13:38:30,415 DEBUG <TemplateHelper> putInContext java
.vm.version=1.5.0_05-b05
[hibernatetool] 2006-10-24 13:38:30,415 DEBUG <TemplateHelper> putInContext hibe
rnate.connection.password=TITAN
[hibernatetool] 2006-10-24 13:38:30,431 DEBUG <TemplateHelper> putInContext user
.variant=
[hibernatetool] 2006-10-24 13:38:30,447 DEBUG <TemplateHelper> putInContext ant.
library.dir=D:\tools\apache-ant-1.6.5\lib
[hibernatetool] 2006-10-24 13:38:30,447 DEBUG <TemplateHelper> putInContext hibe
rnate.jdbc.batch_size=50
[hibernatetool] 2006-10-24 13:38:30,447 DEBUG <TemplateHelper> putInContext java
.awt.printerjob=sun.awt.windows.WPrinterJob
[hibernatetool] 2006-10-24 13:38:30,447 DEBUG <TemplateHelper> putInContext sun.
io.unicode.encoding=UnicodeLittle
[hibernatetool] 2006-10-24 13:38:30,447 DEBUG <TemplateHelper> putInContext awt.
toolkit=sun.awt.windows.WToolkit
[hibernatetool] 2006-10-24 13:38:30,462 DEBUG <TemplateHelper> putInContext hibe
rnate.connection.username=TITAN
[hibernatetool] 2006-10-24 13:38:30,462 DEBUG <TemplateHelper> putInContext user
.home=C:\Documents and Settings\jhua
[hibernatetool] 2006-10-24 13:38:30,478 DEBUG <TemplateHelper> putInContext hibe
rnate.query.substitutions=true='1',false='0'
[hibernatetool] 2006-10-24 13:38:30,478 DEBUG <TemplateHelper> putInContext java
.specification.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:30,478 DEBUG <TemplateHelper> putInContext java
.library.path=C:\jdk1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\IBM\WebSphere
MQ\Java\lib;C:\jdk1.5.0\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.
1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WI
NDOWS\System32\Wbem;D:\tools\maven-2.0.4\bin;D:\tools\apache-ant-1.6.5\bin;D:\to
ols\jad;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Rational\common;D:
\tools;C:\IBM\WebSphere MQ\bin;C:\IBM\WebSphere MQ\WEMPS\bin;D:\php5;C:\Program
Files\MySQL\MySQL Server 5.0\bin;appfusegen-1.8.2;C:\Program Files\Sun\jstudio_e
nt8\AppServ8.1UR2\bin;D:\appserver\bea\weblogic92\common\bin
[hibernatetool] 2006-10-24 13:38:30,493 DEBUG <TemplateHelper> putInContext java
.vendor.url=http://java.sun.com/
[hibernatetool] 2006-10-24 13:38:30,493 DEBUG <TemplateHelper> putInContext hibe
rnate.connection.driver_class=oracle.jdbc.OracleDriver
[hibernatetool] 2006-10-24 13:38:30,509 DEBUG <TemplateHelper> putInContext conn
ection.username=TITAN
[hibernatetool] 2006-10-24 13:38:30,509 DEBUG <TemplateHelper> putInContext java
.vm.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:30,509 DEBUG <TemplateHelper> putInContext hibe
rnate.dialect=org.hibernate.dialect.Oracle9Dialect
[hibernatetool] 2006-10-24 13:38:30,509 DEBUG <TemplateHelper> putInContext java
.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
[hibernatetool] 2006-10-24 13:38:30,525 DEBUG <TemplateHelper> putInContext java
.class.path=D:\tools\apache-ant-1.6.5\lib\ant-launcher.jar;C:\IBM\WebSphere MQ\J
ava\lib\providerutil.jar;C:\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\IBM\W
ebSphere MQ\Java\lib\ldap.jar;C:\IBM\WebSphere MQ\Java\lib\jta.jar;C:\IBM\WebSph
ere MQ\Java\lib\jndi.jar;C:\IBM\WebSphere MQ\Java\lib\jms.jar;C:\IBM\WebSphere M
Q\Java\lib\connector.jar;C:\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\IBM\WebSp
here MQ\Java\lib\com.ibm.mq.jar;D:\tools\apache-ant-1.6.5\lib\ant-antlr.jar;D:\t
ools\apache-ant-1.6.5\lib\ant-apache-bcel.jar;D:\tools\apache-ant-1.6.5\lib\ant-
apache-bsf.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-log4j.jar;D:\tools\apach
e-ant-1.6.5\lib\ant-apache-oro.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-rege
xp.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-resolver.jar;D:\tools\apache-ant
-1.6.5\lib\ant-commons-logging.jar;D:\tools\apache-ant-1.6.5\lib\ant-commons-net
.jar;D:\tools\apache-ant-1.6.5\lib\ant-icontract.jar;D:\tools\apache-ant-1.6.5\l
ib\ant-jai.jar;D:\tools\apache-ant-1.6.5\lib\ant-javamail.jar;D:\tools\apache-an
t-1.6.5\lib\ant-jdepend.jar;D:\tools\apache-ant-1.6.5\lib\ant-jmf.jar;D:\tools\a
pache-ant-1.6.5\lib\ant-jsch.jar;D:\tools\apache-ant-1.6.5\lib\ant-junit.jar;D:\
tools\apache-ant-1.6.5\lib\ant-launcher.jar;D:\tools\apache-ant-1.6.5\lib\ant-ne
trexx.jar;D:\tools\apache-ant-1.6.5\lib\ant-nodeps.jar;D:\tools\apache-ant-1.6.5
\lib\ant-starteam.jar;D:\tools\apache-ant-1.6.5\lib\ant-stylebook.jar;D:\tools\a
pache-ant-1.6.5\lib\ant-swing.jar;D:\tools\apache-ant-1.6.5\lib\ant-trax.jar;D:\
tools\apache-ant-1.6.5\lib\ant-vaj.jar;D:\tools\apache-ant-1.6.5\lib\ant-weblogi
c.jar;D:\tools\apache-ant-1.6.5\lib\ant-xalan1.jar;D:\tools\apache-ant-1.6.5\lib
\ant-xslp.jar;D:\tools\apache-ant-1.6.5\lib\ant.jar;D:\tools\apache-ant-1.6.5\li
b\junit-3.8.1.jar;D:\tools\apache-ant-1.6.5\lib\xercesImpl.jar;D:\tools\apache-a
nt-1.6.5\lib\xml-apis.jar;C:\jdk1.5.0\lib\tools.jar
[hibernatetool] 2006-10-24 13:38:30,572 DEBUG <TemplateHelper> putInContext hibe
rnate.bytecode.use_reflection_optimizer=false
[hibernatetool] 2006-10-24 13:38:30,572 DEBUG <TemplateHelper> putInContext use_
outer_join=true
[hibernatetool] 2006-10-24 13:38:30,572 DEBUG <TemplateHelper> putInContext java
.vm.specification.name=Java Virtual Machine Specification
[hibernatetool] 2006-10-24 13:38:30,572 DEBUG <TemplateHelper> putInContext java
.vm.specification.version=1.0
[hibernatetool] 2006-10-24 13:38:30,572 DEBUG <TemplateHelper> putInContext sun.
cpu.endian=little
[hibernatetool] 2006-10-24 13:38:30,587 DEBUG <TemplateHelper> putInContext sun.
os.patch.level=Service Pack 2
[hibernatetool] 2006-10-24 13:38:30,587 DEBUG <TemplateHelper> putInContext java
.io.tmpdir=C:\DOCUME~1\jhua\LOCALS~1\Temp\
[hibernatetool] 2006-10-24 13:38:30,587 DEBUG <TemplateHelper> putInContext java
.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
[hibernatetool] 2006-10-24 13:38:30,603 DEBUG <TemplateHelper> putInContext defa
ult_catalog=TITAN
[hibernatetool] 2006-10-24 13:38:30,603 DEBUG <TemplateHelper> putInContext hibe
rnate.default_schema=TITAN
[hibernatetool] 2006-10-24 13:38:30,603 DEBUG <TemplateHelper> putInContext os.a
rch=x86
[hibernatetool] 2006-10-24 13:38:30,603 DEBUG <TemplateHelper> putInContext java
.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
[hibernatetool] 2006-10-24 13:38:30,618 DEBUG <TemplateHelper> putInContext java
.ext.dirs=C:\jdk1.5.0\jre\lib\ext
[hibernatetool] 2006-10-24 13:38:30,618 DEBUG <TemplateHelper> putInContext user
.dir=D:\users\Jacky\Develop\test\hibernatetest
[hibernatetool] 2006-10-24 13:38:30,634 DEBUG <TemplateHelper> putInContext line
.separator=

[hibernatetool] 2006-10-24 13:38:30,634 DEBUG <TemplateHelper> putInContext java
.vm.name=Java HotSpot(TM) Client VM
[hibernatetool] 2006-10-24 13:38:30,634 DEBUG <TemplateHelper> putInContext cach
e.provider_class=org.hibernate.cache.OSCacheProvider
[hibernatetool] 2006-10-24 13:38:30,634 DEBUG <TemplateHelper> putInContext file
.encoding=GBK
[hibernatetool] 2006-10-24 13:38:30,650 DEBUG <TemplateHelper> putInContext hibe
rnate.default_catalog=TITAN
[hibernatetool] 2006-10-24 13:38:30,650 DEBUG <TemplateHelper> putInContext java
.specification.version=1.5
[hibernatetool] 2006-10-24 13:38:30,650 DEBUG <TemplateHelper> putInContext hibe
rnate.show_sql=false
[hibernatetool] 2006-10-24 13:38:30,665 DEBUG <TemplateHelper> putInContext arti
facts=org.hibernate.tool.hbm2x.ArtifactCollector@3b8b49
[hibernatetool] 2006-10-24 13:38:30,665 DEBUG <TemplateHelper> putInContext cfg=
org.hibernate.cfg.JDBCMetaDataConfiguration@1359c1b
[hibernatetool] 2006-10-24 13:38:30,665 DEBUG <TemplateHelper> putInContext hmgs
=org.hibernate.tool.hbm2x.HibernateMappingGlobalSettings@9be79a
[hibernatetool] 2006-10-24 13:38:30,681 DEBUG <TemplateHelper> removeFromContext
java.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:30,697 DEBUG <TemplateHelper> removeFromContext
show_sql=false
[hibernatetool] 2006-10-24 13:38:30,697 DEBUG <TemplateHelper> removeFromContext
hibernate.connection.url=jdbc:oracle:thin:@192.168.0.80:1521:ora9
[hibernatetool] 2006-10-24 13:38:30,697 DEBUG <TemplateHelper> removeFromContext
sun.management.compiler=HotSpot Client Compiler
[hibernatetool] 2006-10-24 13:38:30,712 DEBUG <TemplateHelper> removeFromContext
os.name=Windows XP
[hibernatetool] 2006-10-24 13:38:30,712 DEBUG <TemplateHelper> removeFromContext
sun.boot.class.path=C:\jdk1.5.0\jre\lib\rt.jar;C:\jdk1.5.0\jre\lib\i18n.jar;C:\
jdk1.5.0\jre\lib\sunrsasign.jar;C:\jdk1.5.0\jre\lib\jsse.jar;C:\jdk1.5.0\jre\lib
\jce.jar;C:\jdk1.5.0\jre\lib\charsets.jar;C:\jdk1.5.0\jre\classes
[hibernatetool] 2006-10-24 13:38:30,712 DEBUG <TemplateHelper> removeFromContext
sun.desktop=windows
[hibernatetool] 2006-10-24 13:38:30,728 DEBUG <TemplateHelper> removeFromContext
java.vm.specification.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:30,728 DEBUG <TemplateHelper> removeFromContext
ant.home=D:\tools\apache-ant-1.6.5
[hibernatetool] 2006-10-24 13:38:30,728 DEBUG <TemplateHelper> removeFromContext
java.runtime.version=1.5.0_05-b05
[hibernatetool] 2006-10-24 13:38:30,743 DEBUG <TemplateHelper> removeFromContext
default_schema=TITAN
[hibernatetool] 2006-10-24 13:38:30,743 DEBUG <TemplateHelper> removeFromContext
hibernate.cache.provider_class=org.hibernate.cache.OSCacheProvider
[hibernatetool] 2006-10-24 13:38:30,743 DEBUG <TemplateHelper> removeFromContext
user.name=jhua
[hibernatetool] 2006-10-24 13:38:30,743 DEBUG <TemplateHelper> removeFromContext
connection.driver_class=oracle.jdbc.OracleDriver
[hibernatetool] 2006-10-24 13:38:30,759 DEBUG <TemplateHelper> removeFromContext
jdbc.fetch_size=100
[hibernatetool] 2006-10-24 13:38:30,759 DEBUG <TemplateHelper> removeFromContext
user.language=zh
[hibernatetool] 2006-10-24 13:38:30,759 DEBUG <TemplateHelper> removeFromContext
sun.boot.library.path=C:\jdk1.5.0\jre\bin
[hibernatetool] 2006-10-24 13:38:30,759 DEBUG <TemplateHelper> removeFromContext
dialect=org.hibernate.dialect.Oracle9Dialect
[hibernatetool] 2006-10-24 13:38:30,775 DEBUG <TemplateHelper> removeFromContext
java.version=1.5.0_05
[hibernatetool] 2006-10-24 13:38:30,775 DEBUG <TemplateHelper> removeFromContext
user.timezone=Asia/Shanghai
[hibernatetool] 2006-10-24 13:38:30,775 DEBUG <TemplateHelper> removeFromContext
jdbc.batch_size=50
[hibernatetool] 2006-10-24 13:38:30,775 DEBUG <TemplateHelper> removeFromContext
sun.arch.data.model=32
[hibernatetool] 2006-10-24 13:38:30,790 DEBUG <TemplateHelper> removeFromContext
hibernate.use_outer_join=true
[hibernatetool] 2006-10-24 13:38:30,790 DEBUG <TemplateHelper> removeFromContext
java.endorsed.dirs=C:\jdk1.5.0\jre\lib\endorsed
[hibernatetool] 2006-10-24 13:38:30,790 DEBUG <TemplateHelper> removeFromContext
sun.cpu.isalist=
[hibernatetool] 2006-10-24 13:38:30,806 DEBUG <TemplateHelper> removeFromContext
sun.jnu.encoding=GBK
[hibernatetool] 2006-10-24 13:38:30,806 DEBUG <TemplateHelper> removeFromContext
file.encoding.pkg=sun.io
[hibernatetool] 2006-10-24 13:38:30,806 DEBUG <TemplateHelper> removeFromContext
file.separator=\
[hibernatetool] 2006-10-24 13:38:30,806 DEBUG <TemplateHelper> removeFromContext
java.specification.name=Java Platform API Specification
[hibernatetool] 2006-10-24 13:38:30,822 DEBUG <TemplateHelper> removeFromContext
java.class.version=49.0
[hibernatetool] 2006-10-24 13:38:30,822 DEBUG <TemplateHelper> removeFromContext
user.country=CN
[hibernatetool] 2006-10-24 13:38:30,822 DEBUG <TemplateHelper> removeFromContext
connection.url=jdbc:oracle:thin:@192.168.0.80:1521:ora9
[hibernatetool] 2006-10-24 13:38:30,822 DEBUG <TemplateHelper> removeFromContext
java.home=C:\jdk1.5.0\jre
[hibernatetool] 2006-10-24 13:38:30,837 DEBUG <TemplateHelper> removeFromContext
java.vm.info=mixed mode, sharing
[hibernatetool] 2006-10-24 13:38:30,837 DEBUG <TemplateHelper> removeFromContext
os.version=5.1
[hibernatetool] 2006-10-24 13:38:30,837 DEBUG <TemplateHelper> removeFromContext
hibernate.jdbc.fetch_size=100
[hibernatetool] 2006-10-24 13:38:30,837 DEBUG <TemplateHelper> removeFromContext
path.separator=;
[hibernatetool] 2006-10-24 13:38:30,853 DEBUG <TemplateHelper> removeFromContext
connection.password=TITAN
[hibernatetool] 2006-10-24 13:38:30,853 DEBUG <TemplateHelper> removeFromContext
java.vm.version=1.5.0_05-b05
[hibernatetool] 2006-10-24 13:38:30,853 DEBUG <TemplateHelper> removeFromContext
hibernate.connection.password=TITAN
[hibernatetool] 2006-10-24 13:38:30,853 DEBUG <TemplateHelper> removeFromContext
user.variant=
[hibernatetool] 2006-10-24 13:38:30,868 DEBUG <TemplateHelper> removeFromContext
ant.library.dir=D:\tools\apache-ant-1.6.5\lib
[hibernatetool] 2006-10-24 13:38:30,868 DEBUG <TemplateHelper> removeFromContext
hibernate.jdbc.batch_size=50
[hibernatetool] 2006-10-24 13:38:30,868 DEBUG <TemplateHelper> removeFromContext
java.awt.printerjob=sun.awt.windows.WPrinterJob
[hibernatetool] 2006-10-24 13:38:30,884 DEBUG <TemplateHelper> removeFromContext
sun.io.unicode.encoding=UnicodeLittle
[hibernatetool] 2006-10-24 13:38:30,884 DEBUG <TemplateHelper> removeFromContext
awt.toolkit=sun.awt.windows.WToolkit
[hibernatetool] 2006-10-24 13:38:30,884 DEBUG <TemplateHelper> removeFromContext
hibernate.connection.username=TITAN
[hibernatetool] 2006-10-24 13:38:30,884 DEBUG <TemplateHelper> removeFromContext
user.home=C:\Documents and Settings\jhua
[hibernatetool] 2006-10-24 13:38:30,900 DEBUG <TemplateHelper> removeFromContext
hibernate.query.substitutions=true='1',false='0'
[hibernatetool] 2006-10-24 13:38:30,900 DEBUG <TemplateHelper> removeFromContext
java.specification.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:30,900 DEBUG <TemplateHelper> removeFromContext
java.library.path=C:\jdk1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\IBM\WebSp
here MQ\Java\lib;C:\jdk1.5.0\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre
\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;D:\tools\maven-2.0.4\bin;D:\tools\apache-ant-1.6.5\bin;
D:\tools\jad;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Rational\comm
on;D:\tools;C:\IBM\WebSphere MQ\bin;C:\IBM\WebSphere MQ\WEMPS\bin;D:\php5;C:\Pro
gram Files\MySQL\MySQL Server 5.0\bin;appfusegen-1.8.2;C:\Program Files\Sun\jstu
dio_ent8\AppServ8.1UR2\bin;D:\appserver\bea\weblogic92\common\bin
[hibernatetool] 2006-10-24 13:38:30,915 DEBUG <TemplateHelper> removeFromContext
java.vendor.url=http://java.sun.com/
[hibernatetool] 2006-10-24 13:38:30,915 DEBUG <TemplateHelper> removeFromContext
hibernate.connection.driver_class=oracle.jdbc.OracleDriver
[hibernatetool] 2006-10-24 13:38:30,931 DEBUG <TemplateHelper> removeFromContext
connection.username=TITAN
[hibernatetool] 2006-10-24 13:38:30,931 DEBUG <TemplateHelper> removeFromContext
java.vm.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:30,931 DEBUG <TemplateHelper> removeFromContext
hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
[hibernatetool] 2006-10-24 13:38:30,946 DEBUG <TemplateHelper> removeFromContext
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
[hibernatetool] 2006-10-24 13:38:30,946 DEBUG <TemplateHelper> removeFromContext
java.class.path=D:\tools\apache-ant-1.6.5\lib\ant-launcher.jar;C:\IBM\WebSphere
MQ\Java\lib\providerutil.jar;C:\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\
IBM\WebSphere MQ\Java\lib\ldap.jar;C:\IBM\WebSphere MQ\Java\lib\jta.jar;C:\IBM\W
ebSphere MQ\Java\lib\jndi.jar;C:\IBM\WebSphere MQ\Java\lib\jms.jar;C:\IBM\WebSph
ere MQ\Java\lib\connector.jar;C:\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\IBM\
WebSphere MQ\Java\lib\com.ibm.mq.jar;D:\tools\apache-ant-1.6.5\lib\ant-antlr.jar
;D:\tools\apache-ant-1.6.5\lib\ant-apache-bcel.jar;D:\tools\apache-ant-1.6.5\lib
\ant-apache-bsf.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-log4j.jar;D:\tools\
apache-ant-1.6.5\lib\ant-apache-oro.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache
-regexp.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-resolver.jar;D:\tools\apach
e-ant-1.6.5\lib\ant-commons-logging.jar;D:\tools\apache-ant-1.6.5\lib\ant-common
s-net.jar;D:\tools\apache-ant-1.6.5\lib\ant-icontract.jar;D:\tools\apache-ant-1.
6.5\lib\ant-jai.jar;D:\tools\apache-ant-1.6.5\lib\ant-javamail.jar;D:\tools\apac
he-ant-1.6.5\lib\ant-jdepend.jar;D:\tools\apache-ant-1.6.5\lib\ant-jmf.jar;D:\to
ols\apache-ant-1.6.5\lib\ant-jsch.jar;D:\tools\apache-ant-1.6.5\lib\ant-junit.ja
r;D:\tools\apache-ant-1.6.5\lib\ant-launcher.jar;D:\tools\apache-ant-1.6.5\lib\a
nt-netrexx.jar;D:\tools\apache-ant-1.6.5\lib\ant-nodeps.jar;D:\tools\apache-ant-
1.6.5\lib\ant-starteam.jar;D:\tools\apache-ant-1.6.5\lib\ant-stylebook.jar;D:\to
ols\apache-ant-1.6.5\lib\ant-swing.jar;D:\tools\apache-ant-1.6.5\lib\ant-trax.ja
r;D:\tools\apache-ant-1.6.5\lib\ant-vaj.jar;D:\tools\apache-ant-1.6.5\lib\ant-we
blogic.jar;D:\tools\apache-ant-1.6.5\lib\ant-xalan1.jar;D:\tools\apache-ant-1.6.
5\lib\ant-xslp.jar;D:\tools\apache-ant-1.6.5\lib\ant.jar;D:\tools\apache-ant-1.6
.5\lib\junit-3.8.1.jar;D:\tools\apache-ant-1.6.5\lib\xercesImpl.jar;D:\tools\apa
che-ant-1.6.5\lib\xml-apis.jar;C:\jdk1.5.0\lib\tools.jar
[hibernatetool] 2006-10-24 13:38:30,993 DEBUG <TemplateHelper> removeFromContext
hibernate.bytecode.use_reflection_optimizer=false
[hibernatetool] 2006-10-24 13:38:30,993 DEBUG <TemplateHelper> removeFromContext
use_outer_join=true
[hibernatetool] 2006-10-24 13:38:31,009 DEBUG <TemplateHelper> removeFromContext
java.vm.specification.name=Java Virtual Machine Specification
[hibernatetool] 2006-10-24 13:38:31,009 DEBUG <TemplateHelper> removeFromContext
java.vm.specification.version=1.0
[hibernatetool] 2006-10-24 13:38:31,009 DEBUG <TemplateHelper> removeFromContext
sun.cpu.endian=little
[hibernatetool] 2006-10-24 13:38:31,009 DEBUG <TemplateHelper> removeFromContext
sun.os.patch.level=Service Pack 2
[hibernatetool] 2006-10-24 13:38:31,009 DEBUG <TemplateHelper> removeFromContext
java.io.tmpdir=C:\DOCUME~1\jhua\LOCALS~1\Temp\
[hibernatetool] 2006-10-24 13:38:31,025 DEBUG <TemplateHelper> removeFromContext
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
[hibernatetool] 2006-10-24 13:38:31,025 DEBUG <TemplateHelper> removeFromContext
default_catalog=TITAN
[hibernatetool] 2006-10-24 13:38:31,025 DEBUG <TemplateHelper> removeFromContext
hibernate.default_schema=TITAN
[hibernatetool] 2006-10-24 13:38:31,025 DEBUG <TemplateHelper> removeFromContext
os.arch=x86
[hibernatetool] 2006-10-24 13:38:31,040 DEBUG <TemplateHelper> removeFromContext
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
[hibernatetool] 2006-10-24 13:38:31,040 DEBUG <TemplateHelper> removeFromContext
java.ext.dirs=C:\jdk1.5.0\jre\lib\ext
[hibernatetool] 2006-10-24 13:38:31,040 DEBUG <TemplateHelper> removeFromContext
user.dir=D:\users\Jacky\Develop\test\hibernatetest
[hibernatetool] 2006-10-24 13:38:31,040 DEBUG <TemplateHelper> removeFromContext
line.separator=

[hibernatetool] 2006-10-24 13:38:31,056 DEBUG <TemplateHelper> removeFromContext
java.vm.name=Java HotSpot(TM) Client VM
[hibernatetool] 2006-10-24 13:38:31,056 DEBUG <TemplateHelper> removeFromContext
cache.provider_class=org.hibernate.cache.OSCacheProvider
[hibernatetool] 2006-10-24 13:38:31,056 DEBUG <TemplateHelper> removeFromContext
file.encoding=GBK
[hibernatetool] 2006-10-24 13:38:31,056 DEBUG <TemplateHelper> removeFromContext
hibernate.default_catalog=TITAN
[hibernatetool] 2006-10-24 13:38:31,071 DEBUG <TemplateHelper> removeFromContext
java.specification.version=1.5
[hibernatetool] 2006-10-24 13:38:31,071 DEBUG <TemplateHelper> removeFromContext
hibernate.show_sql=false
[hibernatetool] 2006-10-24 13:38:31,071 DEBUG <TemplateHelper> removeFromContext
outputdir=D:\users\Jacky\Develop\test\hibernatetest\generate\hbm
[hibernatetool] 2006-10-24 13:38:31,087 DEBUG <TemplateHelper> removeFromContext
template_path=[Ljava.lang.String;@13d28e3
[hibernatetool] 2006-10-24 13:38:31,103 DEBUG <TemplateHelper> removeFromContext
exporter=org.hibernate.tool.hbm2x.HibernateMappingExporter@c09554
[hibernatetool] 2006-10-24 13:38:31,134 DEBUG <TemplateHelper> removeFromContext
artifacts=org.hibernate.tool.hbm2x.ArtifactCollector@3b8b49
[hibernatetool] 2006-10-24 13:38:31,134 DEBUG <TemplateHelper> removeFromContext
cfg=org.hibernate.cfg.JDBCMetaDataConfiguration@1359c1b
[hibernatetool] 2006-10-24 13:38:31,181 DEBUG <TemplateHelper> removeFromContext
c2h=org.hibernate.tool.hbm2x.Cfg2HbmTool@18bf072
2006-10-24 13:38:31,321 INFO <DriverManagerConnectionProvider> cleaning up conn
ection pool: jdbc:oracle:thin:@192.168.0.80:1521:ora9
[hibernatetool] 2006-10-24 13:38:31,321 DEBUG <TemplateHelper> removeFromContext
c2j=org.hibernate.tool.hbm2x.Cfg2JavaTool@56f631
[hibernatetool] 2. task: hbm2java (Generates a set of .java files)
[hibernatetool] 2006-10-24 13:38:31,337 DEBUG <POJOExporter> org.hibernate.tool.
hbm2x.POJOExporter outputdir:D:\users\Jacky\Develop\test\hibernatetest\generate\
pojo path: [D:\users\Jacky\Develop\test\hibernatetest\template]
[hibernatetool] 2006-10-24 13:38:31,337 DEBUG <TemplateHelper> putInContext expo
rter=org.hibernate.tool.hbm2x.POJOExporter@e64686
[hibernatetool] 2006-10-24 13:38:31,353 DEBUG <TemplateHelper> putInContext c2h=
org.hibernate.tool.hbm2x.Cfg2HbmTool@203c31
[hibernatetool] 2006-10-24 13:38:31,353 DEBUG <TemplateHelper> putInContext c2j=
org.hibernate.tool.hbm2x.Cfg2JavaTool@4fc156
[hibernatetool] 2006-10-24 13:38:31,353 DEBUG <TemplateHelper> putInContext outp
utdir=D:\users\Jacky\Develop\test\hibernatetest\generate\pojo
[hibernatetool] 2006-10-24 13:38:31,368 DEBUG <TemplateHelper> putInContext temp
late_path=[Ljava.lang.String;@1e2ca7
[hibernatetool] 2006-10-24 13:38:31,368 DEBUG <TemplateHelper> putInContext java
.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:31,368 DEBUG <TemplateHelper> putInContext show
_sql=false
[hibernatetool] 2006-10-24 13:38:31,368 DEBUG <TemplateHelper> putInContext hibe
rnate.connection.url=jdbc:oracle:thin:@192.168.0.80:1521:ora9
[hibernatetool] 2006-10-24 13:38:31,368 DEBUG <TemplateHelper> putInContext sun.
management.compiler=HotSpot Client Compiler
[hibernatetool] 2006-10-24 13:38:31,384 DEBUG <TemplateHelper> putInContext os.n
ame=Windows XP
[hibernatetool] 2006-10-24 13:38:31,384 DEBUG <TemplateHelper> putInContext sun.
boot.class.path=C:\jdk1.5.0\jre\lib\rt.jar;C:\jdk1.5.0\jre\lib\i18n.jar;C:\jdk1.
5.0\jre\lib\sunrsasign.jar;C:\jdk1.5.0\jre\lib\jsse.jar;C:\jdk1.5.0\jre\lib\jce.
jar;C:\jdk1.5.0\jre\lib\charsets.jar;C:\jdk1.5.0\jre\classes
[hibernatetool] 2006-10-24 13:38:31,384 DEBUG <TemplateHelper> putInContext sun.
desktop=windows
[hibernatetool] 2006-10-24 13:38:31,400 DEBUG <TemplateHelper> putInContext java
.vm.specification.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:31,400 DEBUG <TemplateHelper> putInContext ant.
home=D:\tools\apache-ant-1.6.5
[hibernatetool] 2006-10-24 13:38:31,400 DEBUG <TemplateHelper> putInContext java
.runtime.version=1.5.0_05-b05
[hibernatetool] 2006-10-24 13:38:31,415 DEBUG <TemplateHelper> putInContext defa
ult_schema=TITAN
[hibernatetool] 2006-10-24 13:38:31,415 DEBUG <TemplateHelper> putInContext ejb3
=false
[hibernatetool] 2006-10-24 13:38:31,415 DEBUG <TemplateHelper> putInContext hibe
rnate.cache.provider_class=org.hibernate.cache.OSCacheProvider
[hibernatetool] 2006-10-24 13:38:31,415 DEBUG <TemplateHelper> putInContext user
.name=jhua
[hibernatetool] 2006-10-24 13:38:31,431 DEBUG <TemplateHelper> putInContext conn
ection.driver_class=oracle.jdbc.OracleDriver
[hibernatetool] 2006-10-24 13:38:31,431 DEBUG <TemplateHelper> putInContext jdbc
.fetch_size=100
[hibernatetool] 2006-10-24 13:38:31,431 DEBUG <TemplateHelper> putInContext user
.language=zh
[hibernatetool] 2006-10-24 13:38:31,446 DEBUG <TemplateHelper> putInContext sun.
boot.library.path=C:\jdk1.5.0\jre\bin
[hibernatetool] 2006-10-24 13:38:31,446 DEBUG <TemplateHelper> putInContext dial
ect=org.hibernate.dialect.Oracle9Dialect
[hibernatetool] 2006-10-24 13:38:31,446 DEBUG <TemplateHelper> putInContext java
.version=1.5.0_05
[hibernatetool] 2006-10-24 13:38:31,462 DEBUG <TemplateHelper> putInContext user
.timezone=Asia/Shanghai
[hibernatetool] 2006-10-24 13:38:31,462 DEBUG <TemplateHelper> putInContext jdbc
.batch_size=50
[hibernatetool] 2006-10-24 13:38:31,462 DEBUG <TemplateHelper> putInContext sun.
arch.data.model=32
[hibernatetool] 2006-10-24 13:38:31,478 DEBUG <TemplateHelper> putInContext hibe
rnate.use_outer_join=true
[hibernatetool] 2006-10-24 13:38:31,478 DEBUG <TemplateHelper> putInContext java
.endorsed.dirs=C:\jdk1.5.0\jre\lib\endorsed
[hibernatetool] 2006-10-24 13:38:31,478 DEBUG <TemplateHelper> putInContext sun.
cpu.isalist=
[hibernatetool] 2006-10-24 13:38:31,478 DEBUG <TemplateHelper> putInContext sun.
jnu.encoding=GBK
[hibernatetool] 2006-10-24 13:38:31,493 DEBUG <TemplateHelper> putInContext file
.encoding.pkg=sun.io
[hibernatetool] 2006-10-24 13:38:31,493 DEBUG <TemplateHelper> putInContext file
.separator=\
[hibernatetool] 2006-10-24 13:38:31,493 DEBUG <TemplateHelper> putInContext java
.specification.name=Java Platform API Specification
[hibernatetool] 2006-10-24 13:38:31,509 DEBUG <TemplateHelper> putInContext java
.class.version=49.0
[hibernatetool] 2006-10-24 13:38:31,509 DEBUG <TemplateHelper> putInContext user
.country=CN
[hibernatetool] 2006-10-24 13:38:31,509 DEBUG <TemplateHelper> putInContext conn
ection.url=jdbc:oracle:thin:@192.168.0.80:1521:ora9
[hibernatetool] 2006-10-24 13:38:31,524 DEBUG <TemplateHelper> putInContext java
.home=C:\jdk1.5.0\jre
[hibernatetool] 2006-10-24 13:38:31,524 DEBUG <TemplateHelper> putInContext java
.vm.info=mixed mode, sharing
[hibernatetool] 2006-10-24 13:38:31,540 DEBUG <TemplateHelper> putInContext os.v
ersion=5.1
[hibernatetool] 2006-10-24 13:38:31,540 DEBUG <TemplateHelper> putInContext hibe
rnate.jdbc.fetch_size=100
[hibernatetool] 2006-10-24 13:38:31,540 DEBUG <TemplateHelper> putInContext path
.separator=;
[hibernatetool] 2006-10-24 13:38:31,540 DEBUG <TemplateHelper> putInContext conn
ection.password=TITAN
[hibernatetool] 2006-10-24 13:38:31,556 DEBUG <TemplateHelper> putInContext java
.vm.version=1.5.0_05-b05
[hibernatetool] 2006-10-24 13:38:31,556 DEBUG <TemplateHelper> putInContext hibe
rnate.connection.password=TITAN
[hibernatetool] 2006-10-24 13:38:31,556 DEBUG <TemplateHelper> putInContext user
.variant=
[hibernatetool] 2006-10-24 13:38:31,556 DEBUG <TemplateHelper> putInContext ant.
library.dir=D:\tools\apache-ant-1.6.5\lib
[hibernatetool] 2006-10-24 13:38:31,571 DEBUG <TemplateHelper> putInContext hibe
rnate.jdbc.batch_size=50
[hibernatetool] 2006-10-24 13:38:31,571 DEBUG <TemplateHelper> putInContext java
.awt.printerjob=sun.awt.windows.WPrinterJob
[hibernatetool] 2006-10-24 13:38:31,571 DEBUG <TemplateHelper> putInContext sun.
io.unicode.encoding=UnicodeLittle
[hibernatetool] 2006-10-24 13:38:31,571 DEBUG <TemplateHelper> putInContext awt.
toolkit=sun.awt.windows.WToolkit
[hibernatetool] 2006-10-24 13:38:31,587 DEBUG <TemplateHelper> putInContext hibe
rnate.connection.username=TITAN
[hibernatetool] 2006-10-24 13:38:31,587 DEBUG <TemplateHelper> putInContext user
.home=C:\Documents and Settings\jhua
[hibernatetool] 2006-10-24 13:38:31,587 DEBUG <TemplateHelper> putInContext hibe
rnate.query.substitutions=true='1',false='0'
[hibernatetool] 2006-10-24 13:38:31,587 DEBUG <TemplateHelper> putInContext java
.specification.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:31,587 DEBUG <TemplateHelper> putInContext java
.library.path=C:\jdk1.5.0\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\IBM\WebSphere
MQ\Java\lib;C:\jdk1.5.0\bin;D:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.
1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WI
NDOWS\System32\Wbem;D:\tools\maven-2.0.4\bin;D:\tools\apache-ant-1.6.5\bin;D:\to
ols\jad;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Rational\common;D:
\tools;C:\IBM\WebSphere MQ\bin;C:\IBM\WebSphere MQ\WEMPS\bin;D:\php5;C:\Program
Files\MySQL\MySQL Server 5.0\bin;appfusegen-1.8.2;C:\Program Files\Sun\jstudio_e
nt8\AppServ8.1UR2\bin;D:\appserver\bea\weblogic92\common\bin
[hibernatetool] 2006-10-24 13:38:31,618 DEBUG <TemplateHelper> putInContext java
.vendor.url=http://java.sun.com/
[hibernatetool] 2006-10-24 13:38:31,618 DEBUG <TemplateHelper> putInContext hibe
rnate.connection.driver_class=oracle.jdbc.OracleDriver
[hibernatetool] 2006-10-24 13:38:31,618 DEBUG <TemplateHelper> putInContext conn
ection.username=TITAN
[hibernatetool] 2006-10-24 13:38:31,634 DEBUG <TemplateHelper> putInContext java
.vm.vendor=Sun Microsystems Inc.
[hibernatetool] 2006-10-24 13:38:31,634 DEBUG <TemplateHelper> putInContext hibe
rnate.dialect=org.hibernate.dialect.Oracle9Dialect
[hibernatetool] 2006-10-24 13:38:31,634 DEBUG <TemplateHelper> putInContext java
.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
[hibernatetool] 2006-10-24 13:38:31,649 DEBUG <TemplateHelper> putInContext java
.class.path=D:\tools\apache-ant-1.6.5\lib\ant-launcher.jar;C:\IBM\WebSphere MQ\J
ava\lib\providerutil.jar;C:\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;C:\IBM\W
ebSphere MQ\Java\lib\ldap.jar;C:\IBM\WebSphere MQ\Java\lib\jta.jar;C:\IBM\WebSph
ere MQ\Java\lib\jndi.jar;C:\IBM\WebSphere MQ\Java\lib\jms.jar;C:\IBM\WebSphere M
Q\Java\lib\connector.jar;C:\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\IBM\WebSp
here MQ\Java\lib\com.ibm.mq.jar;D:\tools\apache-ant-1.6.5\lib\ant-antlr.jar;D:\t
ools\apache-ant-1.6.5\lib\ant-apache-bcel.jar;D:\tools\apache-ant-1.6.5\lib\ant-
apache-bsf.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-log4j.jar;D:\tools\apach
e-ant-1.6.5\lib\ant-apache-oro.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-rege
xp.jar;D:\tools\apache-ant-1.6.5\lib\ant-apache-resolver.jar;D:\tools\apache-ant
-1.6.5\lib\ant-commons-logging.jar;D:\tools\apache-ant-1.6.5\lib\ant-commons-net
.jar;D:\tools\apache-ant-1.6.5\lib\ant-icontract.jar;D:\tools\apache-ant-1.6.5\l
ib\ant-jai.jar;D:\tools\apache-ant-1.6.5\lib\ant-javamail.jar;D:\tools\apache-an
t-1.6.5\lib\ant-jdepend.jar;D:\tools\apache-ant-1.6.5\lib\ant-jmf.jar;D:\tools\a
pache-ant-1.6.5\lib\ant-jsch.jar;D:\tools\apache-ant-1.6.5\lib\ant-junit.jar;D:\
tools\apache-ant-1.6.5\lib\ant-launcher.jar;D:\tools\apache-ant-1.6.5\lib\ant-ne
trexx.jar;D:\tools\apache-ant-1.6.5\lib\ant-nodeps.jar;D:\tools\apache-ant-1.6.5
\lib\ant-starteam.jar;D:\tools\apache-ant-1.6.5\lib\ant-stylebook.jar;D:\tools\a
pache-ant-1.6.5\lib\ant-swing.jar;D:\tools\apache-ant-1.6.5\lib\ant-trax.jar;D:\
tools\apache-ant-1.6.5\lib\ant-vaj.jar;D:\tools\apache-ant-1.6.5\lib\ant-weblogi
c.jar;D:\tools\apache-ant-1.6.5\lib\ant-xalan1.jar;D:\tools\apache-ant-1.6.5\lib
\ant-xslp.jar;D:\tools\apache-ant-1.6.5\lib\ant.jar;D:\tools\apache-ant-1.6.5\li
b\junit-3.8.1.jar;D:\tools\apache-ant-1.6.5\lib\xercesImpl.jar;D:\tools\apache-a
nt-1.6.5\lib\xml-apis.jar;C:\jdk1.5.0\lib\tools.jar
[hibernatetool] 2006-10-24 13:38:31,696 DEBUG <TemplateHelper> putInContext hibe
rnate.bytecode.use_reflection_optimizer=false
[hibernatetool] 2006-10-24 13:38:31,696 DEBUG <TemplateHelper> putInContext use_
outer_join=true
[hibernatetool] 2006-10-24 13:38:31,696 DEBUG <TemplateHelper> putInContext java
.vm.specification.name=Java Virtual Machine Specification
[hibernatetool] 2006-10-24 13:38:31,712 DEBUG <TemplateHelper> putInContext java
.vm.specification.version=1.0
[hibernatetool] 2006-10-24 13:38:31,712 DEBUG <TemplateHelper> putInContext sun.
cpu.endian=little
[hibernatetool] 2006-10-24 13:38:31,712 DEBUG <TemplateHelper> putInContext sun.
os.patch.level=Service Pack 2
[hibernatetool] 2006-10-24 13:38:31,712 DEBUG <TemplateHelper> putInContext java
.io.tmpdir=C:\DOCUME~1\jhua\LOCALS~1\Temp\
[hibernatetool] 2006-10-24 13:38:31,712 DEBUG <TemplateHelper> putInContext java
.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
[hibernatetool] 2006-10-24 13:38:31,728 DEBUG <TemplateHelper> putInContext defa
ult_catalog=TITAN
[hibernatetool] 2006-10-24 13:38:31,728 DEBUG <TemplateHelper> putInContext hibe
rnate.default_schema=TITAN
[hibernatetool] 2006-10-24 13:38:31,728 DEBUG <TemplateHelper> putInContext os.a
rch=x86
[


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 24, 2006 2:23 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
[hibernatetool] 2006-10-24 13:38:29,869 DEBUG <JDBCReader> Table org.hibernate.c
fg.reveng.TableIdentifier(TITAN.T_SA_EMPLOYEE) excluded by strategy

Are you *sure* you only have one line within reveng.xml that says T_SA exclude="false" ?

you don't have *any* exclude="true" ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 24, 2006 6:28 am 
Newbie

Joined: Wed Oct 18, 2006 3:49 am
Posts: 10
the below is my hibernate.reveng.xml file
Code:
<?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>
   <schema-selection match-catalog="TITAN" match-schema="TITAN" />

   <type-mapping>
      <!-- jdbc-type is name fom java.sql.Types -->

      <!-- the type-mappings are ordered. This mapping will be consulted last,
         thus overriden by the previous one if precision=1 for the column -->
      <sql-type jdbc-type="DECIMAL" precision="19" hibernate-type="java.lang.Long" />
      <sql-type jdbc-type="DECIMAL" precision="20" hibernate-type="java.lang.Long" />

      <!-- length, scale and precision can be used to specify the mapping precisly -->
      <sql-type jdbc-type="NUMERIC" precision="1"
         hibernate-type="boolean" />
      <sql-type jdbc-type="TIMESTAMP" hibernate-type="java.util.Date" />
   </type-mapping>

   <!-- Exclude DoNotWantIt from all catalogs/schemas -->
   <!-- BIN$ is recycle bin tables in Oracle -->
   <table-filter match-name="BIN$.*" exclude="true" />
   <table-filter match-name="T_SA_*" exclude="false" />

</hibernate-reverse-engineering>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 24, 2006 7:01 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
this should not have an effect, but try and remove the BIN$ filter and let me know what happens.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 26, 2006 10:59 pm 
Newbie

Joined: Wed Oct 18, 2006 3:49 am
Posts: 10
I only had a filter like this:<table-filter match-name="T_SA_*" exclude="false" />, but still got nothing generated:-(

this is my ant script:
Code:
        <hibernatetool templatepath="./template" destdir="./generate">
           <jdbcconfiguration
              configurationfile="./metadata/hibernate.cfg.xml"
              revengfile="./metadata/hibernate.reveng.xml"
              reversestrategy="net.ema.titan.base.TitanStrategy"
              packagename="net.ema.examples.sa.persistence"
              detectmanytomany="true"
              detectoptimisticlock="true">
           </jdbcconfiguration>
           <hbm2hbmxml destdir="./generate/hbm" />
           <hbm2java destdir="./generate/pojo" />
        </hibernatetool>


I has a strategy class like the below:
Code:
public class TitanStrategy extends DelegatingReverseEngineeringStrategy {
    private ReverseEngineeringSettings settings;

    public TitanStrategy(ReverseEngineeringStrategy delegate) {
        super(delegate);
        settings = new ReverseEngineeringSettings();
    }

    /**
     * 根据数据库表名生成类名
     */
    public String tableToClassName(TableIdentifier ti) {
        String className = ti.getName();
       
        //删除表名前面的"T_XX_". XX代表模块名
        int index = className.indexOf("_"); className = className.substring(index+1);
        index = className.indexOf("_"); className = className.substring(index+1);

        String pkgName = settings.getDefaultPackageName();
        className = toUpperCamelCase(className) + "Model";

        if(pkgName.length() > 0)
            return StringHelper.qualify(pkgName, className);
        else
            return className;
    }

    /**
     * 用于manytoone关系的属性名产生
     */
    public String foreignKeyToEntityName(String keyname, TableIdentifier fromTable, List fromColumnNames,
            TableIdentifier referencedTable, List referencedColumnNames, boolean uniqueReference) {
        String propertyName = Introspector.decapitalize(StringHelper.unqualify(tableToClassName(referencedTable)));
        if(!uniqueReference)
            if(fromColumnNames != null && fromColumnNames.size() == 1)
            {
                String columnName = ((Column)fromColumnNames.get(0)).getName();
                propertyName = propertyName + "By" + toUpperCamelCase(columnName);
            } else
            {
                propertyName = propertyName + "By" + toUpperCamelCase(keyname);
            }
        return propertyName;
    }

    /**
     * 用于manytomany关系的属性名产生
     */
    public String foreignKeyToManyToManyName(ForeignKey fromKey, TableIdentifier middleTable, ForeignKey toKey, boolean uniqueReference) {
        String propertyName = Introspector.decapitalize(StringHelper.unqualify(tableToClassName(TableIdentifier.create(toKey.getReferencedTable()))));
        propertyName = pluralize(propertyName);
        if(!uniqueReference)
            if(toKey.getColumns() != null && toKey.getColumns().size() == 1)
            {
                String columnName = ((Column)toKey.getColumns().get(0)).getName();
                propertyName = propertyName + "For" + toUpperCamelCase(columnName);
            } else
            {
                propertyName = propertyName + "For" + toUpperCamelCase(toKey.getName());
            }
        return propertyName;
    }

    protected String toUpperCamelCase(String s) {
        return ReverseEngineeringStrategyUtil.toUpperCamelCase(s);
    }

    protected String pluralize(String singular) {
        return ReverseEngineeringStrategyUtil.simplePluralize(singular);
    }

    public void setSettings(ReverseEngineeringSettings settings) {
        this.settings = settings;
    }
}



are there any problems?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.