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 <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> 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 [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-appengine?hl=en.

Reply via email to