Do you have javax.persistence.Id in your gwtc classpath?

--Sri


On 9 May 2010 11:37, Dalla <dalla_man...@hotmail.com> wrote:

> But I can´t get this to work.
> If I put an @Id annotation in my GWT-class, the compiler tells me
>
> [INFO]          [ERROR] Line 6: The import javax.persistence cannot be
> resolved
> [INFO]          [ERROR] Line 15: Id cannot be resolved to a type
>
> I´m using maven to build, can that have something to do with it?
>
> On 9 Maj, 02:34, Gal Dolber <gal.dol...@gmail.com> wrote:
> > Annotations just work on gwt... there is nothing to emulate
> >
> > 2010/5/8 Dalla <dalla_man...@hotmail.com>
> >
> >
> >
> >
> >
> > > Hi all
> >
> > > I´m trying to understand how to use Objectify with GWT.
> > > In the features list you can read
> >
> > > "Objectify entities can be used in GWT without the need for Data
> > > Transfer Objects."
> >
> > > Sounds really good, problem is I don´t understand how.
> > > It seems like Objectify needs the @Id annotation to persist an entry,
> > > but the GWT compiler doesn´t emulate the javax.persistance.* package.
> >
> > > So how exatcly can I use my Objectify entities in GWT?
> >
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com><google-web-toolkit%2Bunsubs
> cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > --
> > 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<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group athttp://
> groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@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.

Reply via email to