Without seeing more code, I'd say it's your server-side code fault: when
sending the Address back to the server, you're not retrieving the entity
back from the database but creating a new one, *or* you don't "attach" the
entity correctly to your "session" when persisting, which then persists a
new row instead of updating an existing one.
On Friday, February 24, 2012 5:31:04 PM UTC+1, Rocky wrote:
>
> Hi,
>
> I have two objects person and address
>
> class Person{
>
> String name;
>
> @one-to-one
> Address adderss;
> }
>
> class Address{
>
> String HNo;
>
> String street;
>
> String zip;
> }
>
> I developed a screen with Person information and a ValueListBox with
> all the available addresses and a save button. By clicking on save
> button I need to map only one address to a new Person object. I am
> using RequestFactoryEditorDriver. But when i click on save button, a
> new addess row is getting created with Null values and its id is
> refering by new Person row in database instead of refering already
> selected Address object in the ValueListBox.
>
> Please suggest...
>
> Thanks,
> Rocky
>
>
>
--
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/-/3zxrNhST0bwJ.
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.