Het John,

On May 31, 2011 6:46 PM, "John Robson" <[email protected]> wrote:
>
> Hi Koen,
>
> > You cannot do this with a many to many relation. In this case you could
> > explicitly map the join table and use 2 many to one relations.
>
> Before ManyToMany:
> CONSTRAINT users_has_projects_pkey PRIMARY KEY (users_id, projects_id)
>
> After ManyToOne:
> CONSTRAINT users_has_projects_pkey PRIMARY KEY (id)
>
>
> Before it got better, because there was no id and version and the
> primary keys were correct (users_id, projects_id).

You can specify this in the mapping as a composite key. I am travelling
currently and cannot be more specific but hopefully the dbo documentation
can help you out.

Koen
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to