I work with gwt and hibernate.
I had problems when the sever side returns to the client when a sql resquest is done : fields are null on the client and not on the server…
I followed the procedure on the gilead web site concerning LoadingService (http://noon.gilead.free.fr/gilead/index.php?page=loading-service).
If I understood well, on the client side, I must add these lines
LoadingServiceAsync<Message> remoteService = (LoadingServiceAsync<Message>) ...
to get an object of type Message with the right id.
The problem is that I got an exception :
No Persistence Util set !
I can not find a solution…
Do you have any ideas?
Thank you in advance.
About the fields null on client side and not null on server side, it is a normal behavior : it means the Hibernate did not load them from DB (see the Gilead FAQ for details).
The exception you encounter means that the Gilead initialization code is missing (see here).
thank you for your response.
I tried to follow the advice on the web site to have fields not null in the response, but that did not work.
Is it impossible or is there a solution?
The best way to be sure that the associations are loaded is to use an HQL request, with 'join' clauses.
You can post here you loading code, I will try to help you on doing it right…