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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:16:10+00:00 2026-05-17T19:16:10+00:00

Just example of xml file will be enough) OR Can Hibernate load needed entity(all

  • 0

Just example of xml file will be enough)

OR

Can Hibernate load needed entity(all records) at the starting of application and store it in memory for quick access?

  • 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-17T19:16:11+00:00Added an answer on May 17, 2026 at 7:16 pm

    (…) I just wanna know how to tell Hibernate that is HEAP.

    This part is still unclear. Unless you want Hibernate to generate this table (which is AFAIK not possible), you shouldn’t have to tell Hibernate that the table is a HEAP table. Just map your entity, create and load the table before to start your application and see what happens.

    Can Hibernate load needed entity (all records) at the starting of application and store it in memory for quick access?

    You could use second level caching (with query caching depending on how you access the entities) to achieve something approaching. Caching entities in the second level cache won’t load them at startup, you ill have to write some custom code for that, but you will avoid database hits. This works particularly well with read-only entities (like reference data such as countries, currencies, etc).

    References

    • Hibernate Core Reference Guide
      • Table 3.5. Hibernate Cache Properties
      • 20.2. The Second Level Cache

    Resources

    • Hibernate: Truly Understanding the Second-Level and Query Caches
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just as an example, lets say I have a customerX.xml file that I've unmarshalled
I have two xml files but one file will contain an extra field. Ideally
I've set up an XML file with names of objects that will be contained
So, I've got a massive XML file and I want to remove all CDATA
Appreciate some pointers on how can I use XPath on XML file to extract
I need to develop an application that will read and understand text file in
how can i map xml file(s) of different formats to a table in my
I'm trying to read a XML file, but I want to know just the
i have the following XSL that will transform an XML file and basically flatten
I have a XML file that defines a lot of rules. I load the

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.