Hi,
I have a problem when I try to do reverse engineering on a table that is not physically on the same database I connect to. The database server is running DB2.
The table A from schema S is physically in the db X. There is a link between dbs X and Y, so that table B in schema T on db Y resolves to table A in schema S on db X. In clear text this means:
Database X, schema S, table A
Database Y, schema T, table B => resolves to X.S.A
The problem I have is that I cannot generate anything from the table B, connecting to db Y.
Code:
<hibernate-reverse-engineering>
<table-filter match-schema="T" match-name="B"/>
</hibernate-reverse-engineering>
However, there is no problem when I try to do any SQL query on that table with any JDBC-based client: executing the following SQL query on database Y
Code:
SELECT * from T.B
returns the contents from S.A on database X, as expected.
Is there a known issue, or do I have to set any special options in either hibernate config or the reveng file that I am not aware of? Are aliases and nicknames correctly resolved?
Thank you for your help,
Kariem