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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:42:04+00:00 2026-05-31T08:42:04+00:00

This article states that if we use 2 transactions one for getting first data

  • 0

This article states that if we use 2 transactions one for getting first data and afterwords to get the lazy fields, we won’t run into any problems since the session is reused and the session itself guarantees repeatable read. But this doesn’t seem possible, session look to satisfy repeatable read requirements only when it comes to data that is already in its cache. But what if the object along with its underlying lazy OTO was removed? I understand that for collection it might not cause problems, it will simply return empty collection. But OTO… getChildField() will return proxy (since OTO configured with restricted=true), but it shouldn’t do that since everything is null already. Does anyone have an answer?

  • 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-31T08:42:06+00:00Added an answer on May 31, 2026 at 8:42 am

    The article says what you’re saying: loading objects on demand, across several transactions, is not reliable:

    The solution for this issue is of course proper unit of work
    demarcation and design, supported by possibly an interception
    technique as shown in the pattern here, and/or the correct fetch
    technique so that all required information for a particular unit of
    work can be retrieved with minimum impact, best performance, and
    scalability.

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

Sidebar

Related Questions

This article on MSDN states that you can use as many try catch blocks
This article states that If your site is run on a shared Web server,
I'm wondering just how pervasive JavaScript is. This article states that 73% of websites
This MSDN article states that: An isolation level has connection-wide scope, and once set
This MSDN article stated that: processors are free to reorder this code internal static
I read this article where Ayende states NHibernate can (compared to EF 4): Collection
This article here suggests to use -XX:+UseParNewGC To enable a parallel young generation GC
this article suggests you can use Color c = Color.decode(FF0096); however this understandably throws
This article gives a good overview on why structured exception handling is bad. Is
This article describes a way, in C#, to allow the addition of arbitrary value

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.