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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:12:32+00:00 2026-06-15T20:12:32+00:00

I have an application server that sends an array of record data to the

  • 0

I have an application server that sends an array of record data to the client in response to a search. Prior to sending the data to the client, my thought is to have the server store the data in a session variable.

When the user selects and then submits a record to edit, the client sends the entire record to the server. It updates the entire the record in the database (in case some other user has committed an update after they have searched).

However, I still need to capture the changes so that I can properly store audit information. I think it’s best to capture old and new values based on what the user saw and changed. Therefore, I plan to (deep) compare field by field the record in the session data and the updated record sent by the client. I have two questions:

1) Are there pitfalls/problems with this approach?

2) If not, what is a good Java utility/library for comparing objects?

Thanks in advance for your help.

  • 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-15T20:12:33+00:00Added an answer on June 15, 2026 at 8:12 pm

    You may be better off rejecting the change if another use has changed any field in the record. You can alert the user that the record has change and show them the new data to perform the update again (maybe keep their changed values available to them).

    This way if another user changes a field that relates to a field they did not change, you will not be making changed to the records that no longer make sense with each other.

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

Sidebar

Related Questions

We have a client application that needs to send messages to a server for
I am building an application where I have a server and a client that
So I have a server and a client that communicate various data back and
I have this senario. We have an application server that contains a few web
I have created an application server side that will create a pdf of a
I have a server application that is compiled in 32 bit, and I want
We have a server application that we want to restrict non-users from triggerring it
I have a server application that consists of multiple OSGi bundles, some mine, some
I have a server application that needs to find and exchange small amounts of
I have a server application that writes to a popen(myCommand, w) file descriptor in

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.