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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:35:11+00:00 2026-05-24T07:35:11+00:00

I implement versioning for my own domain model (tracking of differences in objects during

  • 0

I implement versioning for my own domain model (tracking of differences in objects during update operations). Domain model has a tree structure. E.g. (-> is reference)

A
|-> B
|-> C -> A
    | -> C

Requirements for versioning are following:

  • Get the set of changed fields between two versions of domain object;
  • Domain model has a tree structure;
  • Fields can be organized in lists. In following example system should show that Y element was removed (but not that Z was removed and Y changed its state on Z) and X was changed:

      [ v1 ]              [ v2 ]
        A                    A
        |-> [X, Y, Z]        |-> [X, Z]
             |-> C                |-> M
  • There are no more requirements like locking/merging/branching.

I investigate the way to get change set between two states of the same object. I work with Java and interested in exist approaches/solutions. E.g. I’m looking for description of algorithm that subversion use to create next revision.

I will glad to get any theoretical or practical advice from your side.

Thanks

  • 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-24T07:35:12+00:00Added an answer on May 24, 2026 at 7:35 am

    Well, I would say, you speak of 2 different things here.

    Subversion has a revision number for the complete tree, meaning every change is a cheap copy of the previous version. So, there’s no changeset in the term you have in your object hierarchy. It’s more the sum off all changes – and they are calculated per file by your usual diff mechanism.

    If you need versioning for your persisted objects, I would add a version attribute in each and then a method per class calculating the differences. But maybe you’ll need to tell us how you plan to use that information?

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

Sidebar

Related Questions

In my NHibernate mapping files I used: <version name=Version column=Version /> to implement versioning.
I need to implement some versioning for deployment for the app I support where
I’m hoping to investigate/implement a CDN (initially just via a sub-domain, though moving over
As per the Q&A here , I'd like to implement a similar auto-versioning system
I would like to implement a basic versioning system in a MySQL table. Let's
We implement some triggers which perform some operations with insert data before committing them
I'm trying to implement a B-Tree according to the chapter B-Trees in Introduction to
Can you share your thoughts how would you implement data versioning in PostgreSQL. (I've
Can you share your thoughts how would you implement data versioning in Cassandra. Suppose
I've a rather large domain-model that persists using fluent NHibernate to MS SQL Server

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.