Maneesh Godbole wrote:Entities are the classes you get from Hibernate. They have hibernate related and other annotations.
DTOs are the POJOs which correspond with these Entities. DTOs are serializable and do not have any annotations.
Where are your entity classes? Under server?
Do you have a converter code or some other facility which converts Entity<->DTO?
Remember, everything under shared has to be serializable, and the source code should be available for the GWT compiler, including the source code for annotations.
Maneesh Godbole wrote:So you got ComponentDTO ActivityLockDTO ActivityTypeDTO ActivityPermissionDTO inside your ActivityDTO.
Do all these DTOs implement Serializable and and an default constructor?
The entities but with hibernate annotations are in another package (shared)
I am not sure I understand this. Do your DTO have hibernate annotations?