开发者

What is a database-in-one-file supported by hibernate that I can use for a small desktop application?

开发者 https://www.devze.com 2023-03-26 06:19 出处:网络
I\'m building this small desktop application for myself, and until now I\'ve been using Hibernate with MySQL, and it works great.

I'm building this small desktop application for myself, and until now I've been using Hibernate with MySQL, and it works great. The problem is, I will want to give this application to my friends in the future, and I need some sort of database-in-one-file, something like SQLite, that is supporte开发者_运维百科d by Hibernate. Something that you don't need to install in order to work.


SQLite is a one-file database that is supported by hibernate via the project on code.google.com


You can use H2. It gives you an option of a file database and also an in-memory one. Here is the info about Hibernate integration.


Have you tried something like SQLiteJDBC? It has since been abandoned, but a fork is maintained here.

0

精彩评论

暂无评论...
验证码 换一张
取 消