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

The Archive Base Latest Questions

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

When calling a remote service (e.g. over RMI) to load a list of entities

  • 0

When calling a remote service (e.g. over RMI) to load a list of entities from a database using Hibernate, how do you manage it to initialize all the fields and references the client needs?

Example: The client calls a remote method to load all customers. With each customer the client wants the reference to the customer’s list of bought articles to be initialized.

I can imagine the following solutions:

  1. Write a remote method for each special query, which initializes the required fields (e.g. Hibernate.initialize()) and returns the domain objects to the client.

  2. Like 1. but create DTOs

  3. Split the query up into multiple queries, e.g. one for the customers, a second for the customers’ articles, and let the client manage the results

  4. The remote method takes a DetachedCriteria, which is created by the client and executed by the server

  5. Develop a custom ‘Preload-Pattern’, i.e. a way for the client to specify explicitly which properties to preload.

  • 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:50:14+00:00Added an answer on May 10, 2026 at 3:50 pm

    I have used 1 in the past and it worked well.

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

Sidebar

Related Questions

I am pulling JSON data from several remote servers concurrently over HTTP, using a
I'm trying to create table from view from remote server (calling procedure UPDATE_PROC), like
I'm trying to make a call to a remote WCF service from within an
The scenario is around calling an external SSL SOAP web service from within Mirth.
I'm getting this error when calling a java web service. I'm using the same
I am getting the following error using WCF, calling the a WCF Service on
I have a WCF service implemented using the WebServiceHostFactory (REST). I'm calling a service
I'm calling a WCF web service on JBoss over HTTPS. I don't think it
I'm using the HttpClient to post data to a remote service in a .NET
I am writing a remote service for an application using WCF, in which login

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.