[Hibernate-JIRA] Created: (HBX-796) table-filter exclude not work
by jacky hua (JIRA)
table-filter exclude not work
-----------------------------
Key: HBX-796
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-796
Project: Hibernate Tools
Type: Bug
Components: reverse-engineer
Versions: 3.2beta8
Environment: windows xp sp2, jdk 1.4.2, eclipse 3.1.2, ant 1.6.5, hibernate tools beta8, hibernate 3.2 ga
Reporter: jacky hua
Attachments: TitanStrategy.java, hibernate.cfg.xml, hibernate.reveng.xml
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?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
18 years, 2 months
[Hibernate-JIRA] Created: (HBX-784) Hibernate Tools 3.2.0b8 seems to disregard some reveng directives
by Michael T. (JIRA)
Hibernate Tools 3.2.0b8 seems to disregard some reveng directives
-----------------------------------------------------------------
Key: HBX-784
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-784
Project: Hibernate Tools
Type: Bug
Components: reverse-engineer
Versions: 3.2beta8
Environment: Hibernate version: 3.2.0GA
Hibernate tools version: 3.2.0.b8
Java Version: 1.5.0.7
Eclipse Version: 3.2.1
Postgres: 8.0 w/ JDBC driver 8.1b407
(Recreated with MySQL 5.0 and MySQL/J 5.0)
Reporter: Michael T.
Attachments: revengsimplecase.zip
I have a legacy database that unfortunately uses "class" as a table name and there are several tables that refer to this table. I've created a reveng.xml through the tools interface that I believe should rename the "class" object to TFARClass and members of referring classes to tfarClass. When I build the classes, the "TFARClass" object is created but all the referencing classes still have members called "class", which obviously doesn't work.
I've attached a simple workspace that recreates the issue. The attached SQL is for MySQL 5.0 and creates two tables (class and classrange) that have two columns each. There is no functioning code in the workspace, just the hibernate configuration, console and reveng files as well as the class files that were created.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
18 years, 2 months