You need to place your entity in server/domain folder and your DTO in shared. After that add the client and shared folder to your <module>.gwt.xml file.
On 2/28/11, FritzTheCat <wg27_2...@hotmail.com> wrote: > Hi people, > > i try to use gwt 2.2 with JPA. For this I use the @Entity annotation > in my shared folder and i get the error message: > The import javax.persistence cannot be resolved, Entity cannot be > resolved to a type. For me it is clear that something is missing in > the .gwt.xml file and I found the rpc enhanced feature but I don't > know how to include those classes. I used the following "<define- > configuration-property name="rpc.enhancedClasses" is-multi- > valued="true"/>" in my .gwt.xml file but I also have to define my > @Entity annotated classes. So how must the be defined in the .gwt.xml > file? Any help is appreciated, > > thank you and nice greetings > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- Odeyemi 'Kayode O. B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified Professional), Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer Website: http://sinati.com <http://www.sinati.com> Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde, http://www.google.com/profiles/dreyemi Skype:drecute -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.