Hi, only relationate with JPA.

1) you can fix with lazy
annotations<http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html#entity-hibspec-singleassoc-fetching>
.

2) Are you run in a transactional method?

Juan

2011/3/31 Marcin Misiewicz <[email protected]>

> Hi
>
> i have a few problems with updating/creating entities. My model is very
> simple :
>
> @Entity
> Company {
>     .... some fields .....
>     @Embedded
>     Address
> }
>
> @Embeddable
> Addres {
>     ..... some fileds ...
> }
>
> Of course AddressProxy is subtype of the ValueProxy.
> I'm running my sample in devmode using  appengine.
> Here are the problems/questions.
>
> 1. When I want to fetch all the companies with the corresponding address I
> have to, on the server side, iterate over the list and call
> company.getAddress() to really fetch the embedded address object. Calling
> list.size() it's not sufficient to get rid of lazy loading. Of course on the
> client side I'm calliing with(String[] paths) on the request context object.
> Does anybody has similar problem as mine when using appengine?
>
> 2. During updating the entity when I change only the field from the company
> entity for example name the change is not saved to the storage, from logs I
> see that rf sends the new name to the server, but it's not being persisted.
> But when I change the name field and also one of the fields of the embedded
> address object, the changes are persisted successfully.
>
> 3. Version remains the same, even after successful entity update.
>
> 4. After flushing of the requestFactoryEditorDriver the changes are not
> being reflected in the proxy passed to the edit method. How can I obtain
> changes and see what has been changed , before sending them to the server ?
>
>
>  --
> 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.
>

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