I have a class that's in an owned relationship with two different
classes.  Is this supported?  I get the dreaded
"java.lang.ClassCastException: oid is not instanceof
javax.jdo.identity.ObjectIdentity" when I try to save an instance of
the second relationship.

I have classes setup like this:

class A {
  Long id;
  C c;
}

class B {
  Long id;
  C c;
}

class C {
  Key id;
}

I can save an A that has a C, but when I save a B that has a C I get
that exception.  If I don't save the A, then the B is persisted.
Maybe my transactions are interfering with each other somehow?  I
looked for defects there, but my code seems correct.  If this is not a
known limitation, I'll keep looking.

Thanks for any insight.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to