Actually, the shared package is introduced for stuff you use on both the client and the server side. So that's the place to put your domain objects (entity models or however you want to call them). The client package will work fine too, since everything in the client package will be (for now) compiled into bytecode and will be available on server side. But I'm not sure if that's done for backward compatibility and could be changed in the future.
So, I would recommend 'shared'. Gr., Joost On 15 jun, 17:05, Denis <[email protected]> wrote: > The domain object I mentioned needs some further clarification: > It's a serializable Data Transfer Object/Bean/POJO that will be > transferred across all layers: presentation, business, and > persistence. > > With this in mind, I put the domain package under \client following > the approach described in the book of 'Pro Web 2.0 Application > Development with GWT' > > On Jun 13, 11:08 am, Stefan Bachert <[email protected]> wrote: > > > HiDenis, > > > It is absolutely clear where domain object are NOT located, in client > > and shared. Domain objects have nothing to do in GUI or client > > > for a very simple project I would put it under server. > > But in general I would put domain objects into a separate project. > > The reason is, in general there is more than one application possible > > dealing the same domain objects. > > > In general you have the following kind of objects on the server side > > which may build an own layer and thatfore projects. > > > Session objects (state of your gui, application dependant, may be > > persistent) > > > Application objects (application dependant, persistant) > > > Domain objects (application independant, persistant) > > > Stefan Bacherthttp://gwtworld.de > > > On Jun 11, 10:45 pm,Denis<[email protected]> wrote: > > > > Hello, > > > > I am new to use GWT RPC. > > > I am going to define a domain object which will map to a database > > > table and be transported all across the layers from the data > > > persistence to business logics and finally GWT presentation layer. > > > > The question is where should I define those domain objects? Inside the > > > existing client/server/shared folders or add a new domain folder? > > > > Thanks. > > >Denis > > -- 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.
