开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜