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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:40:34+00:00 2026-05-13T19:40:34+00:00

For my current project, we use a nHibernate session to retrieve the object, and

  • 0

For my current project, we use a nHibernate session to retrieve the object, and another session to update the changes we’ve made to the object in between the two session. If we use SaveOrUpdate(), nHibernate will typically do a select-then-update (so, two calls to the database).

However, our own business objects already keep track of changes. So, we’d ideally want to intercept within nHibernate and vote whether the object has been changed or not (without letting nHibernate do the select-statement).

Would that be possible with an interceptor?

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

    You can use your own custom Persister.
    Check this – https://www.hibernate.org/161.html

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

Sidebar

Related Questions

we use FxCop in current project. Warning CA1822 appears for every unit test method
My current project has us using TreeSet and TreeMap in Java, with an input
As part of a current project I've been asked to display a candle onscreen.
Back-Story On a current project, I am using MySQL and SQLite in combination with
We have a multi-module project on which I wanted to use the release plugin.
I'm currently working in .NET 2.0 Visual Basic. The current project is an Active
I've hit a blocker adding a fix to an existing project.the main problem is
I'm trying to find out how to use xemail-net, I downloaded it and it
So, I have this new project. My company uses the SalesForce.com cloud to store
I am currently building a thin C++ wrapper around pthreads for in-house use. Windows

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.