[appengine-java] Discussion on will-it-play-in-app-engine

2010-07-05 Thread Bert Peters
I succesfully tested FreeMarker (www.freemarker.org) on App Engine. Care to add it to the list? -- 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-j...@googlegroups.com. To

[appengine-java] Re: createLoginURL() and Sing-up behavior when running locally under Eclipse debugger?

2010-02-27 Thread Bert Peters
If you read on on that page, you'll see that: QUOTE: The development server knows how to simulate the Google Accounts sign- in facility. When run on your local machine, the redirect goes to the page where you can enter ANY email address to simulate an account sign- in. This explains your problem,

[appengine-java] Re: generating sequential ids

2010-01-23 Thread Bert Peters
What you could do is something like this: public class Employee { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT) private Long id; @Persistent private String department; @Persistent private String firstName; @Persistent private String lastName; }

[appengine-java] Re: Forcing update of JPA entity

2010-01-21 Thread Bert Peters
JDO does not do this too. I think it is a rather annoying bug. Serializing does not work (use that too myself) and just modifing an element does not work too, as your program clearly found out. Still waiting for a fix though... On Jan 22, 12:50 am, Elias Mårtenson loke...@gmail.com wrote: On 22

[appengine-java] Re: JDO doesn't save every modification

2010-01-19 Thread Bert Peters
? On Jan 19, 2:22 pm, John Patterson jdpatter...@gmail.com wrote: On 19 Jan 2010, at 19:43, Bert Peters wrote: A class, handled by some other class, saves only partial updates. I think you'll need to give a bit more context. -- You received this message because you are subscribed

[appengine-java] Re: JDO doesn't save every modification

2010-01-19 Thread Bert Peters
Ok, here is the rest. Sorry about the bad problem definition: Basically, it's like this. (cp.base is an instance of the before mentioned Base class) Integer cb = this.base.getCurrentBuild(); cp.base.setBuildings(cb , this.base.getBuildings(cb) + 1);

[appengine-java] Re: JDO doesn't save every modification

2010-01-19 Thread Bert Peters
The type returned is class java.util.ArrayList. Is there a possible way to fix this? On Jan 19, 8:30 pm, datanucleus andy_jeffer...@yahoo.com wrote: Look in the log (at DEBUG level) and see if the List field is replaced by a wrapper type when you retrieve the overall object from the datastore.

[appengine-java] Re: Can an Integer be a primary key for JDO?

2010-01-17 Thread Bert Peters
). JeffOn Sat, Jan 16, 2010 at 5:59 AM, Bert Peters bert.ljpet...@gmail.com wrote: Thank you for that information, but that's not what i meant. What i did mean is whether this is correct/possible: @PrimaryKey @Persistent(idGeneratorStrategy=INCREMENT) private Integer id; On Jan 16

[appengine-java] Can an Integer be a primary key for JDO?

2010-01-16 Thread Bert Peters
I was just wondering whether I could use an Integer for a primary key in JDO, as it would be a great convenience in my application. I couldn't really find an answer to this in the documentation, so I ask you. Can I? -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: First Request High CPU

2010-01-11 Thread Bert Peters
I believe that, in normal situations, App Engine shuts down your application if it has not had any request for the last 10 minutes. You could set your cron to run it every five, and it should be good. I however do not understand how your (Ikai) cron could take up so much CPU use. I'd profile that.

[appengine-java] Re: Beginner question: one to many relationship

2010-01-11 Thread Bert Peters
If your database has been normalized, I'd say you need something these 2 queries: SELECT FROM author.id WHERE author.name = nameParam, PARAMETER string nameParam SELECT FROM books WHERE book.author = idParam, PARAMETERS Key idParam Or something like that. HTH. On Jan 10, 11:40 pm, fhucho

[appengine-java] Re: Spring Security with GAE - Adding object into HttpServletRequest does not appear to be working

2009-12-26 Thread Bert Peters
What you could do, is check the logs, in your admin panel. They show which error is generated, and at which line. I had a similar problem once, and that helped. On Dec 24, 9:46 pm, sulaimanmra...@googlemail.com sulaimanmra...@googlemail.com wrote: Hi, I've created a GAE web application using

[appengine-java] Re: Eclipse AppEngine Plugin

2009-12-26 Thread Bert Peters
Yes, it certainly could. For every version of eclipse, there is a specific update of the Google Plugin you need. For Galileo, you nee this: http://dl.google.com/eclipse/plugin/3.5 Make sure you've got that one, instead of the 3.4 one or something. On Dec 24, 10:40 am, Ambiency