Well it partly worked, but enough to get by for development purposes
for awhile, so that's pretty good. I removed datanucleus-
appengine-1.0.3.jar from the Eclipse plugin and replaced it with
appengine-1.0.4.RC1.jar. First, I tried my data model unchanged and it
did not work. I got the same error message:
Caused by: java.lang.IllegalArgumentException: can't operate on
multiple entity groups in a single transaction. found both Element {
type: "Customer"
id: 1
}
and Element {
type: "Address"
id: 2
}
So, then I moved the reference to Address from the base class,
"Person" to the subclass, "Customer", and I was able to persist a
Customer. I'm assuming that any owned relationships will only work if
they emanate from the concrete class that you are trying to persist;
not a superclass. But I haven't tried this with, for example, a 3
level inheritance hierarchy, so I can't vouch for that. If I have to
use this type of inheritance in my app, I will post another message to
let people know how it turned out.
In the mean time, I'm hoping that we'll see an update to fix this
owned relationship by a superclass problem soon.
Rick
> ...
>
> read more »