thanks aslak,
i got it!!!!!!!
i can do findByID on A and then call a.getBs() to
satisfy my requirements!!

Thanks again for ur help.

Hari Babu
--- Aslak_Hellesoy <[EMAIL PROTECTED]> wrote:
> I intentionally removed finders for fks, because I
> believe it is bad design
> to use them. FKs should have no business meaning,
> and shouldn't be exposed.
> You can find by ID in the A table and then do
> a.getBs() to obtain the same
> result. Would this work for you?
> 
> (Could you please send ASCII mail?)
> 
> Aslak
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
>
[mailto:[EMAIL PROTECTED]]On
> Behalf Of hari babu
> Sent: 14. januar 2003 09:25
> To: [EMAIL PROTECTED]
> Subject: [Middlegen-user] Foreign key finders
> 
> 
> hai friends,
> I have got two tables A and B.
> Table A has columns ID, Name, Age(_ primary key ID)
> Table B Has columns UID, ID, rank. Here ID is the
> Foreign key referencing ID
> in table A. I have a column ID physically in Table
> B.
> Now when i generate code from middlegen i am not
> getting finder method for
> ID in table B's entity.
> I have set fkcmp=false attribute in the build file.
> How can i get the finder for the foreign key?
> is there any workaround.
> 
> Hari Babu
> 
> 
> 
> 
> 
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> 


__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to