[appengine-java] How to compare date in query

2011-06-15 Thread hairinwind
What I want to do query.setFileter(startTime now ) how to pass in the parameter for 'now'? I tried both below and non of them works query.setFileter(startTime + (new Date())) query.setFileter(startTime + (new Date().getTime())) Please suggest! Thanks! -- You received this message

[appengine-java] how to create key for child object

2011-05-25 Thread hairinwind
Object NoteChain is the parent. Object Note is the child. They should be saved in on transaction, so they should be in one entity group. How to create the key for them? Here is my code but get the weird error. noteChain.key = KeyFactory.createKey(NoteChain, 1L) noteChain.save() println

[appengine-java] grails project does not work

2011-05-17 Thread hairinwind
I deployed a very simple grails project. but it does not work. Here is the error. Please help! [s~yaodongyi/1.350490081779577768].stdout: 2011-05-18 04:55:01,567 [pool-4-thread-1] ERROR context.ContextLoader - Context initialization failed

[appengine-java] How to make Simple Join query return children objects

2011-02-28 Thread hairinwind
The article here only has the example to return the parent object. http://gae-java-persistence.blogspot.com/2010/03/executing-simple-joins-across-owned.html?showComment=1298589845909#c7562859098617623831 Here is what I want to do -- get the children objects. -- two search criteria, one from

[appengine-java] bulk download lost parent key...

2011-02-28 Thread hairinwind
Here is part of config.yml transformers: - kind: ItemNextAlarm connector: csv connector_options: # TODO: Add connector options here--these are specific to each connector. property_map: - property: __key__ external_name: key export_transform:

[appengine-java] How to make Simple Join query return children objects

2011-02-25 Thread hairinwind
The article here only has the example to return the parent object. http://gae-java-persistence.blogspot.com/2010/03/executing-simple-joins-across-owned.html?showComment=1298589845909#c7562859098617623831 Here is what I want to do -- get the children objects. -- two search criteria, one from