You have four choices for key type which are described at
http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys.
An embedded Id won't work with App Engine since it can't be naturally
represented as a Key object.
- Jason

On Tue, Aug 25, 2009 at 2:09 PM, Larry Cable <larry.ca...@gmail.com> wrote:

>
> I have given up, seems like this is not supported, the runtime
> complains that the "MyId" class is not a supported Key Class ... go
> figure ...
>
> On Aug 24, 4:15 pm, Larry Cable <larry.ca...@gmail.com> wrote:
> > Has anyone managed to get @EmbeddedId with JPA to work in GAE/
> > DataNucleus???
> >
> > @Entity
> > public class MyEntity {
> >     //...
> >     @EmbeddedId public MyId id;
> >
> > }
> >
> > // ...
> >
> > @Embeddable
> > public class MyId {
> >     //...
> >
> >     public String id;
> >
> > }
> >
> > I'm getting an "unsupported primary key type" exception at runtime
> > during em.flush()
> >
> > any thoughts? examples of working code?
> >
> > I am pretty sure it's pilot error ... but the documentation for this
> > is pretty thin on the ground ...
> >
> > will try and isolate an actual "working" example and post that here
> > also ...
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to