Hibernate in memory database alongwith actual database


Hello all,

I came to know about Hibenate in-memory database while practicing the tutorial provided by Hibernate.
In my situation, I have an actual database but for processing some data which doesn’t need to be stored in database, I’m using a lot of HashMap (Java Collections) right now. I would like to replace HashMap with in-memory database keeping the actual database intact.

How and where should I configure in-memory database only for using during data processing.

Thank you.


Unfortunately, it’s not clear what you are asking. You can use an in-memory database like H2 with Hibernate and is rather straightforward.