Hi there! Using JDO on GAE/J
PersistenceManager pm = PMF.get().getPersistenceManager(); Key key = KeyFactory.createKey(MyEntity.class.getSimpleName(), "[email protected]"); MyEntity myEntity = pm.getObjectById(MyEntity.class, key); When there is no entity matching the key, it throws JDOObjectNotFoundException. Is there no other way, than catching the Exception (JDOObjectNotFoundException) - like checking for existence of Entity before calling getObjectById? Regards Chris -- 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.
