Hi all,
 
At first is it a necessity to use 'InstanceRequest<>' for persisting 
Entites?
 
Anyway what I am doing is 
_________________________
client
 
 creating a proxy -> calling edit() [request.edit(proxy)] -> set the data 
to proxy e.g.
proxy.setName("name')
...
...//Also some where setting the field for associted type
 
...//how I get a countryProxy is like this 
...requestCon.findById(123).fire........  
 
proxy.setCountry(countryProxy); // I am sure countryProxy has required 
field. *checked for 'ID' i.e countryProxy.getId() != null
..
 
-> call RequestContext appropriate method to save it to database.
 
request.save(proxy).fire.....
 
__________________________________________________
On servier side..
 
public void save(MyEntiry me) {
     me.getCountry() != null; //Yesss!!! country is not null ... there is 
something
     me.getCountry().getId() == null; //Yes!... Id field is null ... on 
client side it wasn't
 
}
___________________________________________________________
 
I need to load the associated entities to hibernate session at least it 
could have given me ID. :(
 
 
 
At the same time an udate method is working fine somehow ... !!! 
uses hbmSession.saveorupdate(..... 
may be its just ignoring associated nulls... I have to yet check it out.....
 
I have a presentation for this app tomorrow... 
 
Help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!..... 
Please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 

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


Reply via email to