What will be the best embedded database to be used

2019-06-03 01:28发布

问题:

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/