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 5986595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:41:38+00:00 2026-05-22T22:41:38+00:00

Hey guys, my question is about persisting an entity in JDO. I have created

  • 0

Hey guys, my question is about persisting an entity in JDO. I have created a class, StoredOPDSFeed, whose members persist correctly. However, none of its member objects persist correctly. The class is as follows:

@PersistenceCapable
public class StorableOPDSFeed implements Serializable {

private static final long serialVersionUID = 1L;

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private String primaryKey;

@Persistent
private String locale;

@Persistent
private Date parseDate;

@Persistent
private String title;

@Persistent
private String href;

@Persistent
@Element(dependent = "true")
private ArrayList<OPDSEntry> entries;

@Persistent
@Element(dependent = "true")
private ArrayList<OPDSLink> links = new ArrayList<OPDSLink>();

@Persistent
@Embedded
private SearchDescription searchDescription;

@Persistent
private boolean isStart = false;

@Persistent
@Element(dependent = "true")
private ArrayList<OPDSFacetGroup> facet_groups = new ArrayList<OPDSFacetGroup>();

... and accessors, etc.
}

All of the simple members such as locale, title, href, etc persist correctly. However, all of the complex ones such as searchDescription do not appear in the datastore. There is no reference to them whatsoever, no foreign key, nothing. It’s like they are completely ignored. Does anyone have any idea why?

Per request, here is the code for OPDSLink:

@PersistenceCapable
public class OPDSLink implements Serializable { 
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
private String encodedKey;

private static final long serialVersionUID = 1L;

@Persistent
private String href;

@Persistent
private String rel;

@Persistent
private String type;

@Persistent
private String price;

@Persistent
private String currency;

@Persistent
private String dcformat;

@Persistent
private String title;
... and accessors, etc.
}
  • 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-05-22T22:41:39+00:00Added an answer on May 22, 2026 at 10:41 pm

    The GAE JDO documentation states that in one-to-one relationships both involved entities require a key field.
    http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html#Owned_One_to_One_Relationships

    If the other entity is embedded as intended in your example, the other class (e.g. SearchDescription) requires a @EmbeddedOnly annotation:
    http://code.google.com/appengine/docs/java/datastore/jdo/dataclasses.html#Embedded_Classes

    In general I found the the following blog interview a good starting point to see what the GAE JDO implementation supports and what not (especially in comparison to third party frameworks such as Objectify and Twig):
    http://borglin.net/gwt-project/?page_id=604

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

Sidebar

Related Questions

Hey guys i have another question about dojo. This time it has to do
Hey guys, I have a question about asp.net I have this table with checkbox
Hey guys I am pretty new to JQuery and I have a question about
Hey guys, I have a question about Sphinx. I use Sphinx to index the
Hey guys just a quick question about the performance of drawRect: as I've noticed
Hey guys quick question, I have an entry that I put in my database,
Hey guys quick question, I currently have an insert statement $query= INSERT into new_mail
Hey guys quick question. I have a div that gets assigned a number to
Hey guys I have one more question lol. I am using a script that
Hey guys i have a question which i have been looking for the answer

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.