Re: Compound PK generation

Chuck Hill <[email protected]> Mon, 13 Dec 2004 09:35:25 -0800
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Why not get rid of the back pointing relationships?  As you are not=20
using them, they will eventually become a performance problem anyway. =20=

You will have to write cover methods to fetch them when needed and=20
manage referential integrity yourself but it might be a viable=20
solution.

Chuck

On Dec 9, 2004, at 4:06 AM, Anders Peterson wrote:

> Hi,
>
> I have some entities with compound primary keys. The pk components are=20=

> 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
>
--=20
Practical WebObjects - a book for intermediate WebObjects developers=20
who want to increase their overall knowledge of WebObjects, or those=20
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects