[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 NamespaceManager.set(tenantn

[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)" wrote: > Yes, you can partition by namespace on do

[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: 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 wrote: > Hi > > "There is cur

[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 Vector(); use new ArrayList(); 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 will have an ArrayList valu

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

2010-08-31 Thread Frederik Pfisterer
uot; in datastore. > Think of 1 Million or more. Then I would have 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 t

[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 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 because you are

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

2010-08-30 Thread Frederik Pfisterer
s==null) >    tags= new ArrayList(); >   return tags; >  } > >  ... > > } > > Do I have to remove all the check of the type if (obj==null) > obj=new...? > > Thank you very much for your help! > > Best > cghersi > > On 27 Ago, 10:

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

2010-08-30 Thread Frederik Pfisterer
the development of our > application. I appreciate any help. > > Thanks, > Ravi > > On Aug 27, 1:51 am, Frederik Pfisterer wrote: > > > Your problem seems to be related to this open gwt > > issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=4976 >

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

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

[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 List . 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); q.setFilter("use

[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 he

[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 wrote: > I am try

[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 rig

[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: http://code.google.com/intl/de-DE/a

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

2010-08-04 Thread Frederik Pfisterer
> I guess that makes sense and your example is dot on. I 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.

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

2010-08-03 Thread Frederik Pfisterer
eries that a normal web app would have you would fall into > situations where you would need to use more and more of unowned > relationships. Is that true? or am I missing something. > > Regards | Vikaswww.inphina.comwww.thoughts.inphina.com > > On Aug 3, 10:00 pm, Frederik Pfis

[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 Set users = new HashSet(); and for User: private Ke

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

2010-08-03 Thread Frederik Pfisterer
7;t > feel like 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 wrote: > > > Hi, > > > there seems to be something weird with how JDO handles

[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 List dependentObjects = new ArrayList(); @Persistent private List stringListP

[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: http://www.datanucleus.org/products/accessplat

[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 compa

[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 wrote: > Thanks DN. > For anyone interested, I'm using datanucleus-cache-1.1.1.jar now and > it seems to work just fine. > &

[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 wrote: > GAE/J does not (yet) support DN 2.x -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group

[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 wrote: > Hi Folks, > > I am new to using a cache and have a hard time setting up the cache > for JDO. Also sear

[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, ga

[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 wrote: > By using the appropriate URLs as shown on the example, >         // The base URL for a user's calendar metafeed (needs a username > appe