Re: Compound PK generation
Anders Peterson <[email protected]> Fri, 10 Dec 2004 10:26:44 +0100
| Newsgroups | gmane.comp.web.webobjects.eof |
|---|---|
| Message-ID | <[email protected]> |
Depends on your definition of automatically/manually. It worked fine as long as the to-many relationships that should=20 propagate the pk-components were class attributes. This, however, was=20 not acceptable to me. (I have changed my design.) With many-to-many relationships it is also done "automatically". /Anders On 2004-12-09, at 19.28, Ricardo Strausz wrote: > Compound keys cannot be assigned automatically by EOF. You have to=20 > assign them by hand. > > see the "saving objects" chapter of the "enterprise objects" book...=20= > it should be installed somewhere in your hd. > > Dino > > On Dec 9, 2004, at 1:06 PM, Anders Peterson wrote: > >> Hi, >> >> I have some entities with compound primary keys. The pk components=20 >> are all foreign keys. >> >> I can't get EOF to generate primary keys for new instances unless I=20= >> set the corresponding to-many relationships (leading to the=20 >> troublesome entity) to be class attributes. >> >> This is going to give me a performance problem. Eventually there will=20= >> be lots of instances =96 huge to-many arrays. >> >> I=92m hoping I=92ve missed something. Is the only way to get rid of = the=20 >> to-many class attributes to have dedicated primary key columns in=20 >> =93all=94 entities? >> >> /Anders >> >> _______________________________________________ >> EOF mailing list >> [email protected] >> http://www.omnigroup.com/mailman/listinfo/eof >