AS400 DB2 Foreign Key Names

"TAMER HELMY A-MAKSOUD ABDOU SALAMA" <[email protected]> Mon, 20 Dec 2004 11:40:08 +0200
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
Hello Everyone:

I'm running Middlgen to generate Hibernate files from a legacy DB2
AS/400.

I'm getting the error:
"java.lang.IllegalArgumentException: There is no column named FORM_00001
in the table named AP_FRM_TYP."

"java.lang.IllegalArgumentException: There is no column named
&ltcolumnname&gt; in the table named &lt;tablename&gt;"

I'm using the &lt;TABLE&gt; element to specify my table names, but,
still I'm getting the same error.
I'm also using  includeViews="false".
I've also tried with crossref but with no hope.

It seems that Middlegen reads the AS/400-assigned Foreign Key short
table names (FORM_00001) and not the long names (FORM_TYPE_ID).  Is it a
bug ?

I would really appreciate your help to resolve this problem.

Tamer Salama


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/