[appengine-java] Query on child list

2011-05-05 Thread pavb
Hello I would like to know if it is possible to make query with constraints on the number of childs. My model represents a user and his evaluations, I have a parent / child relationship between them. In my user class I have a List which represents the links but how to filter on it? I would like to

[appengine-java] Ancestor query

2011-05-10 Thread pavb
Hi I am using objectify in my appengine application and I have problems with my ancestor queries My model is designed as follow: class A { public B getB() { return Ofy.getOfy().get().query(B.class).ancestor(this).get(); } public C getC() { return Ofy.getOfy().get().query(C.class).ancestor

[appengine-java] VerifyError Appengine and jibx

2011-05-23 Thread pavb
Hello Does anybody know if jibx can be used with Appengine? When I test my app on the test server I have such exception: 23 mai 2011 14:20:04 com.google.apphosting.utils.jetty.JettyLogger warn ATTENTION: /widget/project/list java.lang.VerifyError: (class: org/jibx/runtime/BindingDirectory, method

[appengine-java] Local Server and local_db.bin

2011-05-23 Thread pavb
Hello I have a problem to initiate my local datastore with test data. I have created a unit test to populate my local datastore and create the file local_db.bin. (ApplicationId and versionId correctly set) Everything looks ok. But when I use this binary file with the local server in the war/WEB-IN

[appengine-java] RemoteApi : Null pointer Exception

2011-05-24 Thread pavb
Hi I have a nullPointerException when I try to insert data in my production site. It works with the local server. I have tried with the sample code of the documentation but the error is the same. I am using the version 1.5.0.1 of the java sdk Sample code public class RemoteApiExample { public

[appengine-java] Re: RemoteApi : Null pointer Exception

2011-05-24 Thread pavb
Sorry I have made a mistake in my email account. Evrything works fine PA On May 24, 11:32 pm, pavb wrote: > Hi > > I have a nullPointerException when I try to insert data in my > production site. > It works with the local server. I have tried with the sample code of > the doc

[appengine-java] Re: Local Server and local_db.bin

2011-05-25 Thread pavb
RemoteApiOptions options = new RemoteApiOptions() .server("localhost", ) .credentials("", ""); RemoteApiInstaller installer = new RemoteApiInstaller(); installer.install(options); Don't forget to install the remote API servlet and start your local server

[appengine-java] Protect my paypal credentials

2011-05-27 Thread pavb
Hi My paypal credential are encrypted with AES in the configuration files of my web application and I am using the Jasypt libray to encrypt / decrypt the data. With my "old" application configuration I used a WebPBE configuration (Web form) to enter the AES key at the server starting. But now it i

[appengine-java] Re: Checking if I understand transactions correctly

2011-05-31 Thread pavb
Hi, Yes all the datastore insert, update, delete done in the transaction are canceled by the rollback operation. The put of your updated Account is validated only if the transaction commit is done succesfully. PA On 30 mai, 07:57, Jacob wrote: > I am writing some code that needs to do a rollba

[appengine-java] AppEngine : DAO Unit Test Problem with child entities. JDODetachedFieldAccessException

2011-04-15 Thread pavb
Hi, I have a problem with my DAO unit test to check my entities. I have make many tries but I can not find a good solution. I would like to be able to check the values of each property of entities but also theirs childs. I am currently using JPA and spring for the transaction management. I have se