Java standalone app with JPA + Hibernate (or similar) and Apache Derby embedded DB

后端 未结 1 1857
春和景丽
春和景丽 2020-12-13 11:43

I want to create a Java standalone Java application that will use the Apache Derby Embedded DB.

I want to use JPA since I\'m quite familiar with it and probably ove

相关标签:
1条回答
  • 2020-12-13 11:49

    If you are using Maven for your build, you can use the derby-maven-plugin, which I wrote and is available on GitHub and via Maven Central. It will take care of starting and stopping the database for you before your tests.

    You can check:

    • Here for my answer to a similar question
    • Here for a sample REST application which uses Derby and has tests
    0 讨论(0)
提交回复
热议问题