[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-784?page=all ]
Max Rydahl Andersen closed HBX-784:
-----------------------------------
Fix Version: 3.2beta9
Resolution: Fixed
I'm marking this as fixed even though it is partially an configuration error.
the configuration error is that the table name as case sensitive on many dbs thus you
should have written name="CLASS" instead of name="class".
the reason i'm marked it as fixed is that I have added code to try and detect wether
casing is relevant or not; if it is not relevant for the db/driver the reverse
engineering
should handle this transparently now (please let me know if it doesn't)
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.
Fix For: 3.2beta9
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