New Posts New Posts RSS Feed: IdFixUp won't fix up grandChilds
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

IdFixUp won't fix up grandChilds

 Post Reply Post Reply
Author
Dominique View Drop Down
Groupie
Groupie
Avatar

Joined: 28-Jun-2007
Location: Norway
Posts: 44
Post Options Post Options   Quote Dominique Quote  Post ReplyReply Direct Link To This Post Topic: IdFixUp won't fix up grandChilds
    Posted: 18-Sep-2007 at 2:11pm
Hi,
I have 3 tables, parent - child - grandchild.
Parent has an autoincrement id as a PK
Child use id and an ean-number as a PK (all wrong, compound key _and_ natural key :-))
GrandChild, which holds lines for childs uses id, ean and lineNumbers as a PK.
I create some parent entities and I see that devForce give them a negativ id.
The problem arise when I save my entities. The id in parent and child get fixed but not the one in the grand child and this lead to a constraint violation.
As a work aroud I use a "ForceIdFixUp" after the creation of the Parent entities.
Extra info: I am working on the serverside but the persistance manager originate from a smart client which called a ServerRpcPersistenceDelegate through the BOS.

Am I missing something?

Dominique
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down