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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:49:35+00:00 2026-05-13T20:49:35+00:00

I am new to db4o . I have this question in mind: when the

  • 0

I am new to db4o.

I have this question in mind:
when the object are retrieved from DAL, maybe it will update in Business layer, then we lost it’s original property, so when it comes to updating how can I find which one is the original object in the database to update?

  • 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-13T20:49:35+00:00Added an answer on May 13, 2026 at 8:49 pm

    You need to be more precise about “the object”. If you modify the object instance’s properties, simply storing it again will perform an update:

    MyClass someInstance = ObjectContainer.Query<MyClass>().FirstOrDefault();
    someInstance.Name = "NewName";
    someInstance.PhoneNumber = 12132434;
    ObjectContainer.Store(someInstance); // This is the update call
    

    [This is just pseudo-code]

    So you don’t need to match objects to each other as you would have to when using an RDBMS.

    However, you need to make sure you are not using a different instance of ObjectContainer, because a different container will not know these objects are the same instance (since there is no ID field in them).

    Your application architecture should help to do this for most workflows, so there should be really only one IObjectContainer around. Only if timespans are really long (e.g. you need to store a reference to the object in a different database and process it somehow) it’d use the UUID. AS you already pointed out, that requires to store the ID somewhere else and hence complexifies your architecture.

    If you however intend to create a new object and ‘overwrite’ the old object, things get somewhat more complicated because of other objects that might refer to it. However, this is a somehwat pathological case and should typically be handled within the domain model itself, e.g. by copying object data from one object to another.

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

Sidebar

Related Questions

I have to admit that I'm new to Java and Android. db4o seems to
New to Mongo, taking on the analytics quest and have a schema question. I'm
I am a new to db4o. I have a big problem with persistance of
NEW EDIT: I have narrowed my problem to this - i have a view
New to objective-c and I just can't find the answer to this question anywhere.
is it possible in Db4o to load new objects into persistent IObjectContainer? I have
How can I do this? I stored an object in db4o, e.g: class Person
New to DDD here and have a architecture question which should be a typical
New to mvc, I have a controller like this public ActionResult Index(DateTime Date, DateTime
I have a maven project with a dependency (datanucleus-db4o). This dependency has itself a

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.