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

  • Home
  • SEARCH
  • 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 8533809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:03:07+00:00 2026-06-11T10:03:07+00:00

I am in the process of moving an existing Google AppEngine application from the

  • 0

I am in the process of moving an existing Google AppEngine application from the master-slave datastore (MSD) to the new high-replication datastore (HRD).
The application is written in Java, using Objectify 3.1 for persistence.

In my old (MSD) application, I have an entity like:

public class Session {
  @Id public Long id;
  public Key<Member> member;
  /* other properties and methods */
}

In the new (HRD) application, I have changed this into:

public class Session {
  @Id public Long id;
  // HRD: @Parent is needed to ensure strongly consistent queries.
  @Parent public Key<Member> member;
  /* other properties and methods */
}

I need the Session objects to be strongly consistent with their parent Member object.

When I migrate (a working copy of) my application using Google’s HRD migration tool, all Members and Sessions are there. However, all member properties of Session objects become null. Apparently, these properties are not migrated.

I was prepared to re-parent my Session objects, but if the member property is null, that is impossible. Can anyone explain what I am doing wrong, and if this problem can be solved?

  • 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-11T10:03:08+00:00Added an answer on June 11, 2026 at 10:03 am

    @Id and @Parent are not “real” properties in the underlying entity. They are part of the key which defines the entity; Objectify maps them to properties on your POJO.

    The transformation you are trying to make is one of the more complicated problems in GAE. Remember that an entity with a different parent (say, some value vs null) is a different entity; it has a different key. For example, loading an entity with a null parent, setting the parent to a value, and saving the entity, does not change the entity — it creates a new one. You would still need to delete the old entity and update any foreign key references.

    Your best bet is to import the data as-is with the regular ‘member’ field. You can also have the @Parent field (call it anything; you can rename it at any time since it’s not a “real” property). After you migrate, make a pass through your data:

    1. Load each Session
    2. Check for null parentMember. If null:
    3. Assign parentMember and save entity
    4. Delete entity with null parentMember

    Be very careful of foreign key references if you do this.

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

Sidebar

Related Questions

I'm in the process of upgrading an existing ASP.NET2.0 application to .NET3.5 (moving from
I'm in the process of moving from ADO.NET to Linq. The application is a
I'm in the process of moving from an old laptop to a new one.
Scenario: I am in the process of moving an application from access to C#
I'm in the process of moving an application from PHP to Java and there
I'm currently in the process of moving my project from Google Code to Github.
I'm the process of moving applications over from all in the public schema to
I'm in the process of moving a django site over to a new server.
I am in the process of moving some sites over to a new windows
I want to move to a new server and automate the process of moving

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.