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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:57:25+00:00 2026-05-27T03:57:25+00:00

Suppose Object A contains a collection of Object B. Let’s say it’s a one

  • 0

Suppose Object A contains a collection of Object B. Let’s say it’s a one to many (an object B belongs to only one object A)

Now suppose for some reason I already have all the different Object B’s in the session cache already.

Now if I went and fetched an object A from the database (giving me an object A with an uninitalized collection of Object B), is there a way I can tell nhibernate to go into the session cache and find all the object B’s that belong to this object A and initialize the collection of object B’s within the object A I just got?

By initializing the collection, I mean that when I try to use it, it does not need to send any more queries to the database.

I’m using Nhibernate 3.2.

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-27T03:57:26+00:00Added an answer on May 27, 2026 at 3:57 am

    Short answer: no. It doesn’t work that way.

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

Sidebar

Related Questions

Let suppose i have 5 objects and each object contains double values. I want
Suppose I have requirement where I have Shape which contains area as only operation.
Suppose I have an model object Event that contains a Venue . When I
Say I have a method that returns a collection of Animal s. In one
i have a collection of object. when i add some object on that collection.
Suppose an object travels in a parabola in 2D coordinate system from P to
Possible Duplicate: Pick random property from a Javascript object suppose I have a javascript
Suppose the following object structure: class Super {} class SubA extends Super {} class
Suppose the jQuery object of the input is $input. How to make its value
Suppose the jQuery object is $target .

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.