[appengine-java] Re: Incorrect number of entities returned

2010-02-02 Thread aswath satrasala
Hello Anything wrong here. I have two classes Tenant and SecurityGroup. * Create Tenant * Create SecurityGroup * Add SecurityGroup to Tenant * Persist. * Create another SecurityGroup entity. * Persist When I query the datastore for SecurityGroup entities, I get back one entity instead of two. An

[appengine-java] Re: Incorrect number of entities returned

2010-02-03 Thread aswath satrasala
I did further investigation on my unittest (code is pasted in my previous email). The second transaction block is not persisting the SecurityGroup Entity. If I add the following line with in txn block, securityGroup = pm.getObjectById(SecurityGroup.class, securityGroup.getId()); I see the

[appengine-java] Re: Incorrect number of entities returned

2010-02-04 Thread aswath satrasala
Any help here... Thanks. On Wed, Feb 3, 2010 at 5:35 PM, aswath satrasala wrote: > I did further investigation on my unittest (code is pasted in my previous > email). > The second transaction block is not persisting the SecurityGroup Entity. > If I add the following line with in txn block, >

Re: [appengine-java] Re: Incorrect number of entities returned

2010-02-05 Thread Ikai L (Google)
Any chance you can post all the code? This way we can just load it up in our development environment of choice and run it. On Thu, Feb 4, 2010 at 7:21 PM, aswath satrasala wrote: > Any help here... > > Thanks. > > > On Wed, Feb 3, 2010 at 5:35 PM, aswath satrasala < > aswath.satras...@gmail.com>

Re: [appengine-java] Re: Incorrect number of entities returned

2010-02-05 Thread aswath satrasala
Hello Ikai, I posted all the code in a new thread. "owned relationship ? - could it be a bug"Thanks -Aswath On Sat, Feb 6, 2010 at 12:13 AM, Ikai L (Google) wrote: > Any chance you can post all the code? This way we can just load it up in > our development environment of choice and run it. > > O