What will be the best embedded database to be used with a small Java desktop application? [closed]

别来无恙 提交于 2020-01-02 20:18:19

问题


My requirements are

  • Embedded Database
  • Easy Integration with Netbeans IDE
  • Should be able to develop using JPA
  • Free of cost
  • Size of the database should be minimum

Please do suggest me a database with the above mentioned features and some pointers to good tutorials regarding that.


回答1:


I'd suggest HSQLDB. Looking at tutorials of frameworks like Spring and Hibernate, they tend to use HSQLDB as an example of how to use an embedded database with them.

You can use JPA with it, I've personally tried with Hibernate and have had some great results. It's used in projects such as OpenOffice and Mathematica, so that should speak of its quality.

HSQLDB fits 4 of your 5 requirements. Maybe 5 of 5, only because I don't use Netbeans as my IDE. But I'm sure you can try it yourself.




回答2:


H2 database is also a good choice.




回答3:


Try with apache derby http://db.apache.org/derby/



来源:https://stackoverflow.com/questions/4084390/what-will-be-the-best-embedded-database-to-be-used-with-a-small-java-desktop-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!