[appengine-java] two entities into the same entity group - unowned relationship

2009-12-18 Thread aswath satrasala
I have two classes with unowned relationship. I am making tenant key as a key field in the MasterUserLogin. How can I make them belong to the same entity group @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Tenant { @PrimaryKey @Persistent(valueStrategy =

[appengine-java] Re: JDO Query limit? 1000?

2009-12-18 Thread Fabrizio
Stephen, you're right. I tested setRange(1200, 1500) and I get an exception. I'd like to understand more about that. Why datastore limits the first parameter (skip) and not also the second? I was thinking that the limit of a query was 1000 items. I was wrong. So, I can get 5000 items with

[appengine-java] Meassuring Loading Request

2009-12-18 Thread Marcel Overdijk
On http://code.google.com/intl/nl/appengine/kb/java.html#performance there is info how to write a listener to log loading requests. Would it also be possible to log how much time a loading request caused? -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] BlobStore not just jclouds anymore

2009-12-18 Thread Adrian Cole
Glad to see google appengine has a blob store. Mildly annoying that it uses the same name as the jclouds blobstore api, as it will make code confusing. At least you lowercased the 's' in store :p If you'd like to see the first blobstore in google appengine, have a look here:

[appengine-java] Re: Is it possible to store ContactEntrys in the appengine datastore?

2009-12-18 Thread andy.booth
http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Serializable_Objects Serializable objects can be stored as a field of an entity using @Persistent(serialized=true). However, the GData ContactEntry object does not appear to be marked as serializable, so you will probably have

[appengine-java] Re: Web API Development Hosting

2009-12-18 Thread andy.booth
http://wikis.sun.com/display/Jersey/Overview+of+JAX-RS+1.0+Features I'm using JAX-RS (Jersey 1.1.5 version) to provide clients with a GData/AtomPub style REST api to their data stored in the App Engine datastore, allowing both XML and JSON CRUD requests to GET, POST, PUT, DELETE data. (Though

[appengine-java] Re: select count(*) ?

2009-12-18 Thread Jorge
I second this question. Jorge Gonzalez On Dec 2, 1:19 pm, king kingalpha...@gmail.com wrote: Jason, do you have a timeline for when: 1. the cursor feature will be available? 2. the data download feature be available for JAVA (not Python). On Oct 21, 10:54 am, Jason (Google)

[appengine-java] Re: Retrieving an entity using a different key type than the key field in the class

2009-12-18 Thread a.maza
On 17 Dez., 23:11, Ikai L (Google) ika...@google.com wrote: When you say it doesn't work, do you mean that it does not retrieve the entity? right, no entity was found. Can you try creating a Key with the id instead of passing the ID directly?

[appengine-java] Re: Unable to add another admin account

2009-12-18 Thread Lukasz
I tried the second link but instead of adding new developer to the exising app there was only option for adding new app and I did it. Is it possible to add new 'user/developer/email' to the existing application if the email is in domain handled by Google Apps? Cheers, Lukasz -- You received

[appengine-java] Google Calendar log on GAE: Redirect requested but followRedirects is disabled

2009-12-18 Thread Pion
I have the following code snippets (remove exceptions code for brevity) which is based on the example on http://code.google.com/apis/calendar/data/2.0/developers_guide_java.html#RetrievingAllCalendars String appName = companyName-appName-1.0; CalendarService

[appengine-java] BlobstoreService limited by serve() / Feature request for get()

2009-12-18 Thread Stuart Moffatt
App Engine team: Thanks for introducing BlobstoreService. It looked like it was going to solve a major impediment in an application I am prototyping, but I hit the wall (again) with only being able to regurgitate blobs during an http response, and not do anything useful with them in the cloud. I

[appengine-java] maven-gae-plugin 0.4.2

2009-12-18 Thread drone
maven-gae-plugin 0.4.2 has just been released (http://code.google.com/ p/maven-gae-plugin) The main features are upgraded/cleaned dependencies, also there are couple of small bug fixes. You can check the GWT example project (uses GAE 1.3.0 and GWT 1.7.1). Running hosted mode from maven should be

[appengine-java] Re: BlobstoreService limited by serve() / Feature request for get()

2009-12-18 Thread Stuart Moffatt
Added as feature request: http://code.google.com/p/googleappengine/issues/detail?id=2536 http://code.google.com/p/googleappengine/issues/detail?id=2536Stuart On Fri, Dec 18, 2009 at 11:16 AM, Stuart Moffatt stuartmoff...@gmail.comwrote: App Engine team: Thanks for introducing

[appengine-java] Re: BlobstoreService limited by serve() / Feature request for get()

2009-12-18 Thread Stuart Moffatt
Users interested in better BlobstoreService, please star the issue so it gets more attention: http://code.google.com/p/googleappengine/issues/detail?id=2536 Stuart On Fri, Dec 18, 2009 at 11:23 AM, Stuart Moffatt stuartmoff...@gmail.comwrote: Added as feature request:

Re: [appengine-java] Re: eclipse plugin and maven?

2009-12-18 Thread Miguel Méndez
Thanks for the response drone. We are trying to determine what we can do to make this smoother. I think that a lot of people would like to see the plugin relax the war folder constraint. Specifically allowing a user to specify an arbitrary path to their war folder. On Fri, Dec 18, 2009 at

[appengine-java] Can I make GAE send an e-mail with Resent-To header ?

2009-12-18 Thread minor-undroid
I'd like to make an e-mail forward by GAE with Resent-To/Resent-From header. I tried the client Java program with JavaMail that I made, and got the suitable result. I applied ... mail.host: smtp.gmail.com mail.smtp.auth: true mail.smtp.socketFactory.port: 465

[appengine-java] Re: Google Calendar log on GAE: Redirect requested but followRedirects is disabled

2009-12-18 Thread Pion
I have just compiled and executed the Google Calendar sample from http://code.google.com/p/gdata-java-client/downloads/list (version 1.40.1) locally without using any GAE stuffs. EventFeedDemo.java private static void printUserCalendars(CalendarService service) throws IOException,

[appengine-java] embedding parent object in parent-child relation with jdo

2009-12-18 Thread Eugene Kuleshov
I am using the app engine SDK 1.3.0 with the latest Google Eclipse plugin. Currently, in order to be able to run queries on attributes of the parent object I have to embed parent object into a child. So, I have created the following classes @PersistenceCapable(identityType =

Re: [appengine-java] Meassuring Loading Request

2009-12-18 Thread Toby Reyelts
All requests have their durations logged in the admin console. Was there something more you wanted than that? On Fri, Dec 18, 2009 at 3:42 AM, Marcel Overdijk marceloverd...@gmail.comwrote: On http://code.google.com/intl/nl/appengine/kb/java.html#performance there is info how to write a

Re: [appengine-java] Re: Meassuring Loading Request

2009-12-18 Thread Toby Reyelts
On Fri, Dec 18, 2009 at 3:50 AM, Marcel Overdijk marceloverd...@gmail.comwrote: Now that I'm looking at the example code on http://code.google.com/intl/nl/appengine/kb/java.html#performance to distinguish normal request from loading request I'm wondering if the usage is correct... The

[appengine-java] Chat Time transcript for December 16, 2009

2009-12-18 Thread Jason (Google)
This past Wednesday, the App Engine team hosted the latest session of its bimonthly IRC office hours. A transcript of the session and a summary of the topics covered is provided below. The next session will take place on Wednesday, January 6th from 7:00-8:00 p.m. PST in the #appengine channel on

[appengine-java] Re: Use Blobstore Java API with GWT

2009-12-18 Thread Henry
Yes, I did like this and works without problems...thank for the response! On 17 Dec, 09:42, Raphael André Bauer raphael.andre.ba...@gmail.com wrote: hey henry, the gwt frontend code looks like java, but it is crosscompiled. that's the reason why the imports cannot be found - it's technically

[appengine-java] Re: Is it possible to store ContactEntrys in the appengine datastore?

2009-12-18 Thread Tb
Yep. Finally came to the same conclusion. Thanks for your reply Andy. On Dec 18, 2:15 am, andy.booth andy.booth...@googlemail.com wrote: http://code.google.com/appengine/docs/java/datastore/dataclasses.html... Serializable objects can be stored as a field of an entity using

[appengine-java] Re: Google Calendar log on GAE: Redirect requested but followRedirects is disabled

2009-12-18 Thread Pion
By using the appropriate URLs as shown on the example, // The base URL for a user's calendar metafeed (needs a username appended). private static final String METAFEED_URL_BASE = http:// www.google.com/calendar/feeds/; // The string to add to the user's metafeedUrl to

Re: [appengine-java] Re: Finding abandoned child entities

2009-12-18 Thread Rusty Wright
If you're using com.google.appengine.api.datastore.Key for your primary keys, it has a getParent() method which returns null when the object doesn't have a parent. Also, your code is fetching a List of Entity, and Entity also has a getParent() which returns null if there is no parent. m

Re: [appengine-java] two entities into the same entity group - unowned relationship

2009-12-18 Thread Rusty Wright
My understanding is that the only way objects can be in the same entity group with GAE is they have a parent/child relationship (or grandparent/grandchild etc.). aswath satrasala wrote: I have two classes with unowned relationship. I am making tenant key as a key field in the

Re: [appengine-java] embedding parent object in parent-child relation with jdo

2009-12-18 Thread Rusty Wright
Try making the parent's primary key be Key instead of String. Eugene Kuleshov wrote: I am using the app engine SDK 1.3.0 with the latest Google Eclipse plugin. Currently, in order to be able to run queries on attributes of the parent object I have to embed parent object into a child.

Re: [appengine-java] com.google.appengine.api.datastore.DatastoreNeedIndexException

2009-12-18 Thread Jason (Google)
If you're deploying a new version that relies on indexes that haven't been built yet, you should be able to deploy this to a non-default version. This way, the indexes get built eventually but your application won't be serving index errors in the meantime. Then, when the indexes are built, make

Re: [appengine-java] Chat Time transcript for December 16, 2009

2009-12-18 Thread Rusty Wright
Regarding the question about better performance by writing entities in different entity groups; that's not an option if you're using JDO is it, doesn't JDO require a transaction around writes? Jason (Google) wrote: This past Wednesday, the App Engine team hosted the latest session of its

[appengine-java] Re: embedding parent object in parent-child relation with jdo

2009-12-18 Thread Eugene Kuleshov
It shouldn't be needed, since according to the docs [1], the Key type is only required to record parent relation in the child. But I tried it anyways and got pretty much the same exception: Exception in thread main java.lang.ArrayIndexOutOfBoundsException: 0 at

[appengine-java] Freemarker Templates in Dev Server

2009-12-18 Thread efleming969
I'm using freemarker as a template engine, but can't figure out how to get the dev server to accept changes in my templates. I have to restart the dev server. Research shows that the JRuby project has some success with this. Does anyone have any advise? -- You received this message because you

[appengine-java] Re: bulk download error 403

2009-12-18 Thread Matthew Blain
A quick test is if you can visit yourapp/remote_api in the web browser--it should work if you log in as an admin, well it should say This request did not contain a necessary header but not any other errors. On Dec 16, 2:52 pm, lembas keremo...@gmail.com wrote: I get exactly the same error when I

[appengine-java] Re: Finding abandoned child entities

2009-12-18 Thread m seleron
Hi. Thank you for following. Movement might be different depending on the entry method in JDO. thanks. -- 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.

Re: [appengine-java] Dynamically create classes using JPA/JDO and bytecode instrumentation

2009-12-18 Thread Bombay Goose
Thanks DataNucleus team and Toby. Sorry, but I have some more questions 1. How do I delete a particular table dynamically? would just unloading the class do it? Iin that case, what if there are changes to the dynamic table, i.e. column addition/dropping, wouldnt that require unloading the class

[appengine-java] Re: embedding parent object in parent-child relation with jdo

2009-12-18 Thread jd
Could you not split your query into two? The first to find the parent and the second to return all children with an ancestor query. Alternatively, Twig makes embedding objects very simple. If you use the AnnotationTypesafeDatastore you can achieve the above with a single annotation: @Component