From: Ian B. <ia...@co...> - 2003-04-29 08:22:26
|
On Mon, 2003-04-28 at 14:49, Nick wrote: > I was wondering, when instantiating a Join object, shouldn't joinColumn > default to idName of the class instead of always making up the id column > with the Style? I mean, if I define _idName for my class, then for > every single join I have to say joinColumn = idName. Does this make > sense to anyone? Hmmm... I'm not following you. Say you have a Person and an Address (one to many), Address has a person_id column, but Person has an id column, and they go together. How does idName come into it? I mean, ideally when you define the foreign key column in Address it would automatically create the join, but the fear of circular dependencies has scared me off from doing that so far :) Ian |