<table-filter> and <table> tags too far away from each other
------------------------------------------------------------
Key: HBX-1129
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1129
Project: Hibernate Tools
Issue Type: New Feature
Components: reverse-engineer
Affects Versions: 3.2.4.GA
Environment: Irrelevant
Reporter: Joachim Durchholz
For reasons of performance (reverse engineering is slow on Oracle) and keeping the list of
relevant tables under control (only 10% of tables in the database are used in Java code),
I'm using a separate <table-filter> directive for each table.
This gives me a hibernate.reveng.xml like this:
<table-filter match-name="TABLE1" />
<table-filter match-name="TABLE2" />
... (dozens of additional declarations)
<table name="TABLE1">
...
</table>
<table name="TABLE2">
...
</table>
... (dozens more)
This means that the information pertaining to any specific table is distributed over two
separate blocks in hibernate.reveng.xml, the <table-filter> block and the
<table> block.
I see two approaches to improve this:
a) Relax the DTD so that <table-filter> and <table> can be freely mixed. This
would allow to have a single block per file, and make empty separator lines between
per-table blocks useful.
b) Automatically import a table if it's mentioned in a <table> tag (or in a
foreign key) and wasn't imported through a <table-filter> tag already.
--
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