Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9030015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T07:23:09+00:00 2026-06-16T07:23:09+00:00

I am using AppEngine with the HR Datastore and my Objects have IDs of

  • 0

I am using AppEngine with the HR Datastore and my Objects have IDs of type Long (using Java). I do not set the ID myself but let the Datastore choose a new unique one. So far I have only seen positive IDs generated.

Does AppEngine also assign negative IDs ever? (assuming that I do not request more than 2^63 IDs of course ;-))

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T07:23:11+00:00Added an answer on June 16, 2026 at 7:23 am

    The answer seems to be: MAYBE.

    In my tests I have only seen positive auto generated IDs, but I was able to store negative IDs (if manually assigned). Until someone can point us to a specification that defines otherwise or at least some Googler from the AppEngine team speaks up, we must assume that they at least reserve the right to generate negative IDs at any time. Thus our code cannot assume generated IDs to be positive always.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using AppEngine's native Datastore API to store objects in Java. I have
I'm using the Google AppEngine, with Java. When I use some datastore features, I'm
I have a Google App Engine Java application, which uses Appengine datastore for its
Using AppEngine datastore, but this might be agnostic, no idea. Assume a database entity
I am using appengine, webapp2 framework. I have the following model: class Match(db.Model): date_time
I have two objects a user and a role which I make persistant using
I have hierarchical data stored in the datastore using a model which looks like
I am using the Goole app engine datastore with Java and trying to load
I have been using django-appengine and am now trying a project with django-nonrel. Before
I have created a set of Models for my database using Python. Now I'd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.