Am Montag, 9. Juli 2012 18:16:06 UTC+2 schrieb Lukas Eder:

> Where do you get "Y" from? From the column or the foreign table? Because 
> in 
> > my code, you'd get 
> > 
> >   XRecord { 
> >     void setY(YRecord); 
> >     void setAnotherY(YRecord); 
> >   } 
>
> Yes, I've confused using referenced table names with removing _ID 
> column suffixes, I'm sorry. OK, different (yet a bit less probable 
> collision scenario): 
>
> FK-column 1: Y_ID 
> FK-column 2: Y 
>
> Now, they'd both produce setY(). 
> I think this is a minor issue, and I'd prefer to handle such 
> customisation in strategies. I know you don't agree on this one :-) 
>

I like the idea of the strategy but I don't understand how your 
implementation works, so I'm stuck to solve the problem in the place which 
I understand :-)

But how about this idea: The generator keeps a list of methods (with 
signature). When you need a new method name, you can give it a list of 
names (most desired first) and it tells you the first one that's free?

Regards,

A. Digulla

Reply via email to