[appengine-java] Using the DataNucleus parent-pk extension?

2009-12-20 Thread David Fuelling
Kind of an involved question, but I'm wondering if it's possible to use the parent-key pattern with JPA to search for N child entities of a given parent that have a particular property. I can get this to work if I include the parent object in my child entity, but I'd like it to work when I just

[appengine-java] StackOverFlowError on JPA Remove() with @OneToMany and abstract base classes.

2009-12-20 Thread David Fuelling
I'm pretty sure my issue is a bug, but upon further reflection I figured I'd bring it to light here in the discussion groups just to be sure. Here's the issue, with test code: http://code.google.com/p/googleappengine/issues/detail?id=2541 Basically, I'm trying to model a User entity that has

[appengine-java] Re: Generating QR Codes with ZXing

2009-12-20 Thread mably
More generally, has anybody heard of an open source barcode generator java library running on GAE ? We need to generate QR Codes or Datamatrix bar codes from our application running on GAE. We are using the Google Charts API for generating QR Codes for the moment. Thanx for you help. On 19

[appengine-java] JavaMail: AccessControlException warning

2009-12-20 Thread Pion
I am following the http://code.google.com/appengine/docs/java/mail/overview.html instructions. My code (snippets): import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.util.Properties; import java.util.logging.Logger; import javax.mail.Message; import

[appengine-java] Accessing GMail Inbox

2009-12-20 Thread Pion
The http://java.sun.com/products/javamail/FAQ.html#gmail shows how to access Gmail Inbox using JavaMail. //String host = imap.gmail.com; String host = pop.gmail.com; String username = user; String password = passwd; // ... //Store store = session.getStore(imaps); Store

[appengine-java] Re: Generating QR Codes with ZXing

2009-12-20 Thread mably
Hi Roberto, thanx for your answer. I finally succeeded generating QRCodes with the ZXing QRCode encoder and a home made PNGEncoder (derivated from the ones found there : http://catcode.com/pngencoder/). But I'm still stuck with Datamatrix bar codes coz ZXing doesn't generate them. Any help will

[appengine-java] How to create a real or mock Key object without initializing a whole app engine environment?

2009-12-20 Thread Peter Recore
Is there a way to create a mock Key object, or to create a key object without actually initializing an app engine enviroment? I want to unit test some code that depends on a JDO object. In order to create this JDO object, I need to pass in a Key, which it normally uses as a reference to another