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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:54:06+00:00 2026-06-15T00:54:06+00:00

I am currently interesting in creating mapping for entities with a version field. However,

  • 0

I am currently interesting in creating mapping for entities with a version field. However, I’m confused about how to work with versioning in a web environment. In most examples i have seen an entity is updated within a using statement that happens instantly.

In a web example the entity gets fetched in the HTTP GET and not updated until the client invokes an HTTP POST. What I normally do in the post is to fetch the entity again, update data and store it. But that entity could have changed in the time between my GET and POST. Should I check the version field myself before i save or is there a better way?

  • 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-15T00:54:08+00:00Added an answer on June 15, 2026 at 12:54 am

    Yes, I think you’ll need to check this yourself. One way you could do this is when you retrieve the entity in the initial get and send it back to the caller, include the version number in the response.
    When you do your post, include the version number. On the server side, when you re-read the attached nHibernate entity, get the current version number from it. If your version number is out of date, stop the update.

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

Sidebar

Related Questions

I am currently looking into papertrail and find it very interesting. However my web
I'm currently messing about with implementing interesting data structures in Ruby and have reached
I'm currently experiencing an interesting problem. My Situation: I am currently developing a web
I'm currently working on the interesting example in cocos2d. I have a sprite, that
I have this interesting obstacle on my project. I am currently doing a MVC3
I'm currently exploring the different options for building a not-too-complex web application, in which
There was a very interesting discussion on LosTechies regarding AutoMapper(an argument for/against 2-way mapping).
I am currently involved in some interesting programming language research which has, up until
I am currently working on ServiceStack , just very new to it. (Quite interesting;
I am currently creating a set of custom media types for a RESTful api

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.