Per:
http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html

I think you want this:

@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;


On Mon, Jun 28, 2010 at 9:40 PM, shookie10 <chade.sh...@gmail.com> wrote:

> Hi I am getting the following error when using the "INCREMENT"
> strategy.  It show as available in the API but DataN. returns the
> error below
>
> "There is no available value generator for strategy "increment" for
> this datastore."
>
>
> Relevant code :
> @PrimaryKey
> @Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT)
>        private Long id;
>
> It should create the id at runtime with no sequence.  Is there
> something I am missing?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com<google-appengine%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to