I'll look at it. Can you send me the SQL too? I'd like to see how you 
define the REFERENCE.

PS. I have done good progress with struts/jsp generation. It might be 
valuable for your webwork/velocity stuff (that was you, wasn't it?). 
I'll commit it one of these days.
DS.

Aslak

----- Original Message -----
From: Marco Papini <[EMAIL PROTECTED]>
Date: Thursday, June 27, 2002 4:43 pm
Subject: [Middlegen-user] [BUG] NPE if a table has a FK of more than 
one column

> I've got a problem running Middlegen on my DB, where I've defined 
> a 
> foreign key on two columns. That's the scenario:
> 
> Table A ( a1, a2, a3, a4 ) where PK is a1, a2
> Table B ( b1, a1, a2, b2 ) where PK is b1 and FK is (a1, a2)
> 
> When running Middlegen, I get this error :
> 
> [middlegen] (middlegen.DbTable                   197 ) There is no 
> column named a1,a2 in the table named b
> 
> Hope this is clear enough.
> 
> Marco
> 
> 
> 
> -------------------------------------------------------
> Sponsored by:
> ThinkGeek at http://www.ThinkGeek.com/
> _______________________________________________
> middlegen-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> 



-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to