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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:04:23+00:00 2026-06-11T08:04:23+00:00

i have a problem with db4o that i’m unable to fix. i have 2

  • 0

i have a problem with db4o that i’m unable to fix.
i have 2 classes.

public class Profile {
    private String Name;
    private List<Action> Actions;

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public List<Action> getActions() {
        if (Actions == null)
            Actions = new ArrayList<Action>();
        return Actions;
    }
}

and the other class.

public class Action {
   private String _Name;

   public Action(String Name) {
    _Name = Name;
   }

   public String getName() {
    return _Name;
   }
}

the thing is when i store in db4o for the first time the Profile and the list of actions save fine aswell. when i update (adding or removing items from the list of actions) it wont reflect in the database (db4o).

what i do to save the data is just to db4o.store(Profile). i dont know if maybe i must to store the list something like db4o.store(Profile.Actions).

any help would be appreciated.

Regards.

  • 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-11T08:04:25+00:00Added an answer on June 11, 2026 at 8:04 am

    It looks like your update depth isn’t set properly. To update the inner list of your Profile class, you need to set up your configuration with a higher update depth. See this article and this article in the db4o references.

    For a List, I recommend an update depth of 2 or higher.

    EmbeddedConfiguration configuration = Db4oEmbedded.newConfiguration();
    configuration.common().objectClass(Profile.class).updateDepth(2);
    

    An update depth of 2 will update all the way down to the Action object, including the Action itself (I believe) so that if you change an Action that’s already in the list, it will update too. Just be careful, as setting the update depth too high can cause performance issues.

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

Sidebar

Related Questions

I have problem in C#. I have a list box and a class called
I have problem with Android using the class HttpUrlConnection my method is this: public
I've just started with db4o and I stumbled on to a problem. I have
I am a new to db4o. I have a big problem with persistance of
I have problem with consuming DbContext class in EF 4.3 CodeFirst approach. As for
I have problem with List<Image> List<Image> _Images = new List<Image>(); int currIndex = 0;
I have problem with css styles in aspx.cs file HttpContext.Current.Response.Write(<table class=\'bordered\' cellpadding=\'5\' color: \'red\'
I have problem in some JavaScript that I am writing where the Switch statement
i have a problem with db4o and I wanna know is it feature or
have problem with ampersand (&) How to search for the words (or sentences) that

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.