Hi, You may be interested to read to undertstand the structure of DS keys: http://code.google.com/appengine/articles/storage_breakdown.html#anc-entitiestable
And, to answer your question, you can use key.getId() (see http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Key.html) on low-level api to retrieve the Long that you need for JPA regards didier On Jan 14, 1:59 pm, Charms Styler <charmssty...@gmail.com> wrote: > Thanks. So it is possible to use both JPA & low level API. > > I tried it out , works like a charm but @ retrieval of specific object I ran > into prob you see > in my JPA, all my Entities are by long ID. How is possible for me to access > id using Key ? How may I refer keys using id & vice versa?? > > @Id > @GeneratedValue(strategy = GenerationType.IDENTITY) > private Long id; -- 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.