[appengine-java] Re: Bulk update throws exception

2009-09-16 Thread Jason (Google)
Hi Anita. I don't understand your data model -- if you are modeling the relationship between entities of type A and entities of type B using entities of type C, why do entities of type A have direct references to entities of type B and vice versa? Either way, the reason you're getting this error i

[appengine-java] Re: Bulk update throws exception

2009-09-15 Thread Anita
Hi Jason, I could solve my previous problem. But now i am facing some other problem with many to many relationship tables. My schema looks as follows: TableA ---> TableC <- TableB which means there is many to many relationship between TableA & TableB. So i want TableA and TableB primary ke

[appengine-java] Re: Bulk update throws exception

2009-09-14 Thread Larry Cable
nope you are right ... it's not useless ... apologies I *think* the problem is in mapping (conceptually) from a mental RDBMS model to a GAE DS model ... where "entity group" might be mistaken for "table" ... :) On Aug 26, 3:02 pm, "Jason (Google)" wrote: > Why do you indicate that the document

[appengine-java] Re: Bulk update throws exception

2009-09-14 Thread Jason (Google)
>From the error message, it sounds like the parent isn't getting set correctly. You'll need to share some of your code in order for me to help you further -- what does your Release class look like and how are you persisting it? - Jason On Sat, Sep 12, 2009 at 4:36 AM, Anita wrote: > > Hi Jason,

[appengine-java] Re: Bulk update throws exception

2009-09-12 Thread Anita
Hi Jason, Our schema looks as follows: ProductType 1->M Product 1>M Release Data is inserting into Release table. But while fetching data from release table i am getting following exception: Field com.ensarm.server.domain.Release.products should be able to provide a reference t

[appengine-java] Re: Bulk update throws exception

2009-08-26 Thread Jason (Google)
Why do you indicate that the documentation is useless? The links I included above state this quite clearly: two entities will be in separate entity groups by default, even if they're the same kind. Entity groups DO NOT collect entities of the same kind. If you need transaction support, you'll need

[appengine-java] Re: Bulk update throws exception

2009-08-25 Thread Larry Cable
h' ... so it would seem that 2 or more entity (instances) persisted in the same tx cause this error ... this cannot be so ... how is the mapping from instance to entity (group) made? On Aug 25, 2:33 pm, Larry Cable wrote: > I have exactly the same problem, I instantiate a number of @Entity

[appengine-java] Re: Bulk update throws exception

2009-08-25 Thread Larry Cable
I have exactly the same problem, I instantiate a number of @Entity objects (all of the same type) persist them, and flush them in the context of the same transaction. Since they are all of the same type, and their are no relationships (although there is an @Embedded class/field) I would imagine t

[appengine-java] Re: Bulk update throws exception

2009-08-17 Thread Jason (Google)
Have you read the documentation on entity groups? http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html#Entity_Groups_Ancestors_and_Paths http://code.google.com/appengine/docs/java/datastore/relationships.html In JDO/JPA, entity groups are expressed using owned relationsh