[appengine-java] Re: Namespace design issues

2010-09-28 Thread Frederik Pfisterer
@Mouseclicker and John Patterson: To solve your problem in the meanwhile consider a meta-model of a Tenant in the default namespace. Each tenant entity should have a namespace field, plus whatever information you want it to hold about your tenant. You can then enforce

[appengine-java] Re: removing element from list not persisted in datastore

2010-09-09 Thread Frederik Pfisterer
I experienced this with lists of complex objects in owned relationships, not with lists of strings, see http://code.google.com/p/datanucleus-appengine/issues/detail?id=218 . Lists of strings should not be a problem since they're stored in the same table, basically the listproperties Bret mentions

[appengine-java] Re: App Engine and Google Apps

2010-09-09 Thread Frederik Pfisterer
Hi Ikai, can you give a pointer to a document that states what rules and regulations GAE complies to? e.g. where did you state the noncompliance to HIPAA? What does Google prevent from complying? Thanks, Fred On 8 Sep., 20:13, Ikai L (Google) ika...@google.com wrote: Yes, you can partition by

[appengine-java] Re: Problem with inheritance and JDO

2010-09-08 Thread Frederik Pfisterer
You might want to give a try to @Inheritance(customStrategy = complete-table) on the superclass. No inheritance annotation needed on the inheriting class. Persistence of fields in superclasses should work fine. Hope this helps, Fred On 8 Sep., 05:27, Didier Durand durand.did...@gmail.com wrote:

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

2010-09-04 Thread Frederik Pfisterer
i believe the problem is in your constructor: this.files = new VectorPersistentFile(); use new ArrayListPersistentFile(); instead. see: http://code.google.com/intl/de-DE/appengine/docs/java/datastore/dataclasses.html#Collections If a field is declared as a List, objects returned by the datastore

[appengine-java] Re: Google app engine database backup java

2010-08-31 Thread Frederik Pfisterer
http://code.google.com/intl/de-DE/appengine/docs/python/tools/uploadingdata.html On 30 Aug., 14:05, prabu prabuc...@gmail.com wrote: hi,  please somebody help me.I have a java project on app engine,how to backup and restore database using pythan give example code -- You received this message

[appengine-java] Re: Best practice modeling a 1:n user-relationship with List properties

2010-08-31 Thread Frederik Pfisterer
to iterate over 1 million records each time I collect the nicknames of max 10-50 users. Would it not be better to keep some denormalized fields in MyAppUser with nicknames or use contains in the query with the friendsIdlist? On 27 Aug., 10:06, Frederik Pfisterer pfiste...@gmail.com wrote: Hi

[appengine-java] Re: Best practice modeling a 1:n user-relationship with List properties

2010-08-30 Thread Frederik Pfisterer
Hi, from experience with GAE + JDO I'd recommend using ListString since ListObject currently has some issues you'll encounter down the road. If your list is actually ListMyAppUser you'd have an object graph that can currently only be achieved with ListString. Also in your reasoning for query 2

[appengine-java] Re: Not able to save child object in one-to-many relationship

2010-08-30 Thread Frederik Pfisterer
On Aug 27, 1:51 am, Frederik Pfisterer pfiste...@gmail.com wrote: Your problem seems to be related to this open gwt issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=4976 Please star the issue to raise its attention. The workaround is not using 1:n relationships with GWT

[appengine-java] Re: JDO: Null parent on some children objects

2010-08-30 Thread Frederik Pfisterer
of the type if (obj==null) obj=new...? Thank you very much for your help! Best cghersi On 27 Ago, 10:58, Frederik Pfisterer pfiste...@gmail.com wrote: Hi, the problem is this line: owner = new First(); Beware that the only way you should ever store a Second object

[appengine-java] Re: Not able to save child object in one-to-many relationship

2010-08-27 Thread Frederik Pfisterer
Your problem seems to be related to this open gwt issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4976 Please star the issue to raise its attention. The workaround is not using 1:n relationships with GWT + GAE + JDO. Cheers, Fred On 26 Aug., 23:12, hampole

[appengine-java] Re: JDO: Null parent on some children objects

2010-08-27 Thread Frederik Pfisterer
Hi, the problem is this line: owner = new First(); Beware that the only way you should ever store a Second object is: myFirstObject.getList().add(mySecondObject); pm.makePersistent(myFirstObject); since Second.owner is mapped it's automatically populated by the persistance manager. Hope this

[appengine-java] Re: Best practice modeling a 1:n user-relationship with List properties

2010-08-27 Thread Frederik Pfisterer
Hi, my recommendation would be to use ListString . In your reasoning for query 2 be aware of the lazy loading that JDO performs in the background to retrieve the related objects. Query one and two are similar (if nickname is a field of MyAppUser): Query q = pm.newQuery(MyAppUser.class);

[appengine-java] Re: Problem with one 2 many relationships

2010-08-14 Thread Frederik Pfisterer
Hi Aleksey, There are a few things you can try including using transactions http://code.google.com/intl/de-DE/appengine/docs/java/datastore/transactions.html . But from personal experience I have to warn you to be careful with one- to-many in JDO and recommend you don't use these relationships

[appengine-java] Re: JDO: child value won't be stored when it's persisted directly by referring as a element of list field of parent

2010-08-08 Thread Frederik Pfisterer
There are many open issues with JDO and lists of children and I also experience the one you describe. Did you already file an issue here: http://code.google.com/p/datanucleus-appengine/issues/list ? Please post the issue ID here and upload a sample project if you have. Thanks. On 2 Aug., 22:49,

[appengine-java] Re: Can Jade run on GAE?

2010-08-07 Thread Frederik Pfisterer
If no one ever tried it you can try check frameworks jade might depend on and leave comments here: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine In general jade would have to comply to the sandbox environment described here:

[appengine-java] Re: Changing the Parent of a child entity

2010-08-04 Thread Frederik Pfisterer
was wondering are there real life applications on GAE where people are using JDO/JPA relationships. The more the problems that I face with relationships and the more I read about it, it seems that unowned is the way to go. Thanks, Vikas On Aug 4, 12:53 am, Frederik Pfisterer pfiste...@gmail.com

[appengine-java] Re: JDO one-to-many remove entity from list in detached state does not persist

2010-08-03 Thread Frederik Pfisterer
the right thing to be doing. http://groups.google.com/group/google-appengine-java/browse_thread/th... On Aug 2, 6:11 am, Frederik Pfisterer pfiste...@gmail.com wrote: Hi, there seems to be something weird with how JDO handles modifications (removes) to lists of objects. I have two

[appengine-java] Re: Changing the Parent of a child entity

2010-08-03 Thread Frederik Pfisterer
You have to use unowned relationships and not place the department and the user in the same entity group. See: http://code.google.com/intl/de-DE/appengine/docs/java/datastore/relationships.html#Unowned_Relationships use for UserDepartment: private SetKey users = new HashSetKey(); and for User:

[appengine-java] JDO one-to-many remove entity from list in detached state does not persist

2010-08-02 Thread Frederik Pfisterer
Hi, there seems to be something weird with how JDO handles modifications (removes) to lists of objects. I have two lists: @Persistent(defaultFetchGroup = true) @Element(dependent = true) private ListChild dependentObjects = new ArrayListChild(); @Persistent private

[appengine-java] how to declare a field to be NOT NULL

2010-06-01 Thread Frederik Pfisterer
Hi Folks, this seems to be ridiculously trivial but I can't seem to get it right: I need to have a field in a model class to be not null and have an annotation on the field @Persistent(nullValue=NullValue.EXCEPTION) private String foo; As see here:

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-08 Thread Frederik Pfisterer
Toby, I am not sure since I'm new to the topic but that's how I understood it. The L2 Cache is disabled by default, you need to include another jar from datanucleus in your buildpath and add two lines to your jdoconfig (see above). If you try it out please let me know how performance changes

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-05 Thread Frederik Pfisterer
Thanks DN. For anyone interested, I'm using datanucleus-cache-1.1.1.jar now and it seems to work just fine. On 4 Mrz., 23:41, datanucleus andy_jeffer...@yahoo.com wrote: GAE/J does not (yet) support DN 2.x -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-05 Thread Frederik Pfisterer
Is it possible that DN L2 caching in GAE drives down CPU milliseconds used but overall response times get slower? On 5 Mrz., 09:52, Frederik Pfisterer pfiste...@gmail.com wrote: Thanks DN. For anyone interested, I'm using datanucleus-cache-1.1.1.jar now and it seems to work just fine. On 4

[appengine-java] JDO Level2 Cache setup for dummies

2010-03-04 Thread Frederik Pfisterer
Hi Folks, I am new to using a cache and have a hard time setting up the cache for JDO. Also searched the web and this group but didn't find any help, so maybe someone can give me a pointer or help me out. Here is what I did so far: 1. added datanucleus-cache-2.0.0-release.jar to the buildpath,

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-04 Thread Frederik Pfisterer
Here is a useful resources for anyone interested in this thread: http://www.datanucleus.org/products/accessplatform_1_1/jdo/cache.html On 4 Mrz., 21:20, Frederik Pfisterer pfiste...@gmail.com wrote: Hi Folks, I am new to using a cache and have a hard time setting up the cache for JDO. Also

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

2010-02-13 Thread Frederik Pfisterer
Any luck dissabling the warning? If yes, could you post a logging.properties entry or any steps to underake? thanks, Fred On 18 Dez. 2009, 19:56, Pion onlee2...@gmail.com wrote: By using the appropriate URLs as shown on the example,         // The base URL for a user's calendar metafeed (needs