Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-09 Thread Max Ross (Google)
I don't see a class that is owned by more than one entity in your latest example. What exactly should I be looking at? Your understanding of the BigTable layout is correct, but you're bumping into a limitation of how we've mapped JDO on to that layout. The low-level api knows nothing about your

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-09 Thread bryce cottam
On the ActivityReservation model object, there is an instance of RatePlan (which is also a child object of Activity). So, here's a thought, I will try it out later, but I thought I'd ask right now about it: how about having subclasses of RatePlan that live on different parent objects? since

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread Max Ross (Google)
Hi Bryce, I started digging into you issue and quickly bumped into the Multiple relationships of the same type bug for which I posted the workaround. Then I got bogged down with unrelated stuff. I have definite plans to get back to your example today. Thanks for being patient, and sorry this

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread bryce cottam
No worries Max, I'm using 1.2.6 right now, so the multiple instance bug isn't an issue right now. Whenever you get to it is fine. As always I appreciate your input. Thanks -bryce On Dec 8, 2009 10:14 AM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Hi Bryce, I

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread Max Ross (Google)
Ok I think I know what's going on. First here's a stripped down version of your object model with the bare minimum needed to reproduce the exception: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class RatePlan { @PrimaryKey @Persistent(valueStrategy =

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread Max Ross (Google)
Filed http://code.google.com/p/datanucleus-appengine/issues/detail?id=170 On Tue, Dec 8, 2009 at 6:18 PM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Ok I think I know what's going on. First here's a stripped down version of your object model with the bare

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread bryce cottam
Thanks for filing that Max. I'm kind of interested in your findings because there is another place where I'm doing about the same thing (i.e. making a RatePlan instance a direct child of an Entity other than Activity) and it works fine in that case most of the time. Sometimes it gives me the oid

[appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-07 Thread bcottam
Max, have you had a chance to try this out? I'm not trying to push or anything, just wanted to make sure my last message didn't get overlooked. I've noticed this error sort of... randomly popping up in places where it preivously hasn't as of late. If i'm missing something in my configuration,

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-03 Thread bryce cottam
Okay, sorry for the delay, I haven't been able to focus on this for a few days. here is the full (including the jar libararies in case there is an issue with them). http://www.resmarksystems.com/code/JdoTest.zip It's a very simple Servlet, by hitting the url hostname/jdotest you should execute

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-01 Thread Max Ross (Google)
Hi Bryce, Thanks for posting your model objects. I'm not able to reproduce the exception you're reporting, but then again I'm just guessing at how you're populating your objects and persisting them. Here's what I did: Bundle b = new Bundle(); RatePlan rp = new RatePlan();

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-01 Thread Max Ross (Google)
I don't see a call to tx.begin() in the code below. Is that a typo or is it actually missing? On Tue, Dec 1, 2009 at 12:29 PM, bryce cottam bcot...@gmail.com wrote: thanks so much for checking into this Max. The data that I'm saving is user generated, so there's not a set script for it.

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-01 Thread Max Ross (Google)
Now I'm starting to suspect something funny going on with your config. I received a TransactionNotActiveException when I tried to run your code without starting the txn, and the fact that you didn't receive that exception doesn't make any sense to me. I can't explain why you see the exception

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-01 Thread bryce cottam
yeah, I didn't see a TransactionNotActiveException. here is my jdoconfig.xml: persistence-manager-factory name=transactions-optional property name=javax.jdo.PersistenceManagerFactoryClass value=org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory/