thanks for your attention Brandon !
I didn't understand your first way completely. I don't use App engine.
our application use spring and jpa and I use eclipse and currently we
run application on jetty.
in our previous application, we used jsf and we could implement such
scenarios for entities with owned collection and after copying
collections from ui into entity, hibernate handle persisting entity
and it's owned collection and we didn't do anything. in that
application when we annotate a property with cascade="all-delete-
orphan" and ask hibernate to save(entity), it saves it's owned
collections too.

I want to know how to implement such scenarios, when we use gwt 2.4
with editor framework. and is there any sample or tutorial for doing
this on web ?

On May 8, 8:03 pm, Brandon Donnelson <[email protected]> wrote:
> Two ways I build relationships are. Just depends where else I need that
> entity.
>
> 1. I use owned collections, which means I can create the context all at
> once and persist it and App engine can build the relationship in the key.
> This is my favorite, but has some limitations if you want to have another
> entity use it too.
>
> 2. Another way I do it is, in the parent I use HashSet<Long> and set the
> children Ids to it I which is using Long Ids to link the relationships of
> the children, but the entity has to be created and the Id retrieved before
> you add it to the parent.
>
> Brandonhttp://c.gwt-examples.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to