I suspect the reason, but I want to see the mappings (classes with
attributes) of both types first.

However, this might help you, especially the sample mapping for a list at
the end of the post:
http://mortslikeus.blogspot.com/2009/06/understand-activerecord-mapping.html

-Markus

2010/5/26 Jason Sznol <jasonsz...@gmail.com>

> When trying to add a List to the database by using HasMany with a
> RelationType.List, on create() it will throw a violates primary key
> constraint exception. This is cause by an update being run after the
> entire list has been saved to the database where it goes through and
> starts to change the primary keys and tries to set two different rows
> to the same primary key. Any reason why this would be happening?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To post to this group, send email to castle-project-users@googlegroups.com
> .
> To unsubscribe from this group, send email to
> castle-project-users+unsubscr...@googlegroups.com<castle-project-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to castle-project-us...@googlegroups.com.
To unsubscribe from this group, send email to 
castle-project-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to