在内存数据库中寻找易于使用的Spring,Hibernate,JavaConfig和Maven

时间:2023-01-25 22:50:54

I am looking for in memory database easy to use with Spring, Hibernate, JavaConfig and Maven.

我在内存数据库中寻找易于使用的Spring,Hibernate,JavaConfig和Maven。

I am working on a example Spring Java Application using Spring, Hibernate, JavaConfig and Maven and I need a very easy to setup and use in memory database..

我正在使用Spring,Hibernate,JavaConfig和Maven编写Spring Java Application示例,我需要在内存数据库中轻松设置和使用。

I would like to hear from others on which one will be easy to add to my project with JavaConfig, Maven, Hibrenate and Spring

我想听听其他人使用JavaConfig,Maven,Hibrenate和Spring轻松添加到我的项目中的内容

thanks :)

3 个解决方案

#1


2  

HSQLDB or H2 both work. I prefer H2 and use it with DbUnit for all of my JUnit unit tests as an embedded database. I have used both however and either will work fine with what you mentioned. The best part of either option is the plethora of examples on the interwebs :)

HSQLDB或H2都有效。我更喜欢H2并将它与DbUnit一起用于我的所有JUnit单元测试作为嵌入式数据库。然而,我已经使用了两者,并且任何一种都可以与你提到的一致。任一选项中最好的部分是互联网上的大量例子:)

#2


1  

We've successfully used HSQLDB. It's very easy to start with; dialect supported by Hibernate.

我们已经成功使用了HSQLDB。这很容易入手; Hibernate支持的方言。

#3


1  

What used to be called Derby is bundled into JDK 7 now:

曾经被称为Derby的东西现在被捆绑到JDK 7中:

http://www.oracle.com/technetwork/java/javadb/overview/index.html

It doesn't get easier than that.

它并不容易。

#1


2  

HSQLDB or H2 both work. I prefer H2 and use it with DbUnit for all of my JUnit unit tests as an embedded database. I have used both however and either will work fine with what you mentioned. The best part of either option is the plethora of examples on the interwebs :)

HSQLDB或H2都有效。我更喜欢H2并将它与DbUnit一起用于我的所有JUnit单元测试作为嵌入式数据库。然而,我已经使用了两者,并且任何一种都可以与你提到的一致。任一选项中最好的部分是互联网上的大量例子:)

#2


1  

We've successfully used HSQLDB. It's very easy to start with; dialect supported by Hibernate.

我们已经成功使用了HSQLDB。这很容易入手; Hibernate支持的方言。

#3


1  

What used to be called Derby is bundled into JDK 7 now:

曾经被称为Derby的东西现在被捆绑到JDK 7中:

http://www.oracle.com/technetwork/java/javadb/overview/index.html

It doesn't get easier than that.

它并不容易。