If you don't have access to the source for your hibernate objects,  
then you'll need to create DTOs (data transfer objects) that are  
essentially identical to your hibernate objects.

You can then manually marshal the values, or use a bean mapping  
library such as Dozer to do the work automagically.

I generally use this technique even when I have the source for my  
server side objects as most of my objects have information that is not  
appropriate to send to the client anyway.

-jason

On Mar 26, 2009, at 7:41 AM, jero wrote:

>
> Hi,
> I am new to GWT and I have been playing around with GWT. Now I want to
> retrieve via hibernate using a RemoteService call ths content from a
> database. I have already a jar (provided by the db guys) where the
> domain is reflected. The problem I have is when I use it I always
> receive serialization problems form some classes of the domain. I know
> that if I extend my entity classes wit IsSerializable than the
> serialization works fine and I have no problem. I have been reading
> around and found that if you add your class to the *.gwt.rpc file than
> this would to the trick, well for me it didn't work, still
> serialization problem. I googled and found the Gilead project (former
> hibernate4gwt), what I don't like is that I have to extend my entity
> classes, but I am not allowed I am not maintining the db classes. So I
> am a bit stuck and after googling for last few days I didn't manage to
> find a proper solution. How can I get rid of the serialization
> problem, any suggestions are welcome?
>
> Thanks,
>
> Jero
>
> >


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