Can I use hibernate instead of a database?

1. Recently, when I was learning hibernate, a question suddenly occurred to me: can I use hibernate instead of a database to store data? Can it cooperate with hibernate with simple file access?

2. In order to answer this question, I think we should first find out whether hibernate has any intermediates in object mapping. If so, can this intermediate be obtained? If you can, maybe you can save it with a file.

3, personal thinking is greatly inspired, I hope someone can answer the questions, thank you!

Feb.28,2021

  1. H2 HSQL and other embedded databases can be used without configuring another database server. It is generally used in development or test environments
  2. there should be no ready-made hibernate. You may need to write a jdbc driver. It is possible to read and write csv/xml and other files through sql.
Menu