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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:21:59+00:00 2026-05-10T15:21:59+00:00

The situation is this: You have a Hibernate context with an object graph that

  • 0

The situation is this:

  • You have a Hibernate context with an object graph that has some lazy loading defined.
  • You want to use the Hibernate objects in your UI as is without having to copy the data somewhere.
  • There are different UI contexts that require different amounts of data.
  • The data is too big to just eager load the whole graph each time.

What is the best means to load all the appropriate objects in the object graph in a configurable way so that they can be accessed without having to go back to the database to load more data?

Any 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. 2026-05-10T15:22:00+00:00Added an answer on May 10, 2026 at 3:22 pm

    Let’s say you have the Client and at one point you have to something with his Orders and maybe he has a Bonus for his Orders.

    Then I would define a Repository with a fluent interface that will allow me to say something like :

    new ClientRepo().LoadClientBy(id)                 .WithOrders()                 .WithBonus()                 .OrderByName(); 

    And there you have the client with everything you need. It’s preferably that you know in advance what you will need for the current operation. This way you can avoid unwanted trips to the database.(new devs in your team will usually do this – call a property and not be aware of the fact that it’s actually a call to the DB)

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

Sidebar

Related Questions

So, I have this situation where I need to see if an object is
I have a typical Flex-based application that was written to use a Java/Hibernate/MySQL backend.
During coding I frequently encounter this situation: I have several objects ( ConcreteType1 ,
I know questions of this kind have been asked before, but my situation differs
This is often situation, but here is latest example: Companies have various contact data
I have somehow misconfigured fingers. This leads to a very annoying situation. I select
Here is the situation. This small company I'm working with wants to have a
I have a mapping along the lines of this. <hibernate-mapping xmlns=urn:nhibernate-mapping-2.2 namespace=Model.Entities schema=etl assembly=Model
Suppose, I have saved some permissions in the database by using this code: RoleRepository
I ran across this situation this afternoon, so I thought I'd ask what you

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.