Monday, October 31, 2011

Re: Has anybody setup an owned Collection in RequestFactory? Does know how to set the ParentKey/ChildKey?

Thanks for looking at my code. I wanted to follow up.

to 1. I was having problems with the implying the parent in the ownership, so I had to do it manually. I have other projects where I use RPC and I don't have to set the parent. For some reason I wasn't able to get it to work in this codebase. I'll try again  Thanks for noticing that.

to 2. I found you can have arguments in the tokenizer. The one you saw was not really being used. Here is a better example: http://code.google.com/p/gwt-examples/source/browse/trunk/WalletInventory/src/com/gonevertical/client/app/activity/places/WalletEditPlace.java

to 3. I'll have to try the editor driver. On the Todo list. 

to 4. I wouldn't/don't mind using JPA, but I could not find a path of success using the annotations to setup the Owned Collections annotations. I tried everything I could think of and settled with this. I do like the concise annotations in JPA although, when it came to Owned Collections in App Engine it failed for me. If you look into the history, I tried twice on this code base. Its most likely operator error. 
This is the JPA version I tried: http://code.google.com/p/gwt-examples/source/browse/trunk/WalletInventory/src/com/gonevertical/server/domain/WalletData.java?r=2908 - no worky for me. 

Do you know how to annotate owned Collections in JPA. 

Thanks for looking through the code! :)

Brandon Donnelson
http://gwt-example.googlecode.com


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/aiPr9JdBph8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment