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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:49:12+00:00 2026-05-26T02:49:12+00:00

When we tried to retrieve data for a arraylist, we are iterating each row

  • 0

When we tried to retrieve data for a arraylist, we are iterating each row and then we are using fetch query.is there any other iteration row in hibernate template or sql

for (RequestObjRel reqObjRel : requestObjRelList) {

    String sqlQuery = "from Ce where cerId = '"
            + reqObjRel.getCed()
            + "' and trbr = "
            + reqObjRel.getCNbr();
    List<Certificate> certDetailList = dao
            .retrieveTableData(sqlQuery);
}

I could not find efficient way to retrieve data

  • 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-26T02:49:13+00:00Added an answer on May 26, 2026 at 2:49 am

    You can make an HQL query that uses the IN clause and thus fetch multiple objects with one query. Something like:

    from Foo foo where foo.id in (:fooIds)
    

    Then you set the parameter on the Query object: query.setParameter("fooIds", listOfIds);

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

Sidebar

Related Questions

I used to retrieve data from a site using a c# program.(nseindia.com) however recently
I have a ftp program that retrieve folder data each time expanded. It does
I'm using MySQL Connector to retrieve data from a mySQL database to a .NET
A LinkedList can't be serialized using XmlSerializer. Now, how to however save/retrieve data from
I am using Node.js and tried to store the timestamp data in the Mongodb
I am using the dojox.charting.widget.Chart2D and I am trying to retrieve the data from
I 'm trying to retrieve data from a datastore by using this (in example)
I have a function to retrieve a single row of data representing a sales
I am using VS2005 C# and SQL2005. I would like to retrieve data from
I would like get meaning of selected word using wikionary API. Content retrieve data

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.