hibernate - 正在寻找 : Spring + Hibernate + JPA 的 Maven Artifact

标签 hibernate spring jpa maven

我是 Maven 新手,有以下 2 个关于 Maven 的问题:

  1. 我正在寻找一个包含 Spring + Hibernate + JPA 的 Maven Artifact 。我发现的唯一一种是与 Flex 混合的。目前,我想保持简单,不想处理 Flex 增加的复杂性。

  2. 当你下载一个 Maven Artifact (例如 Spring + Hibernate + JPA 的 Artifact )时,它们是否已经带有必要的配置,或者 Maven 只处理库和文件的下载,然后我必须进去并添加必要的配置?

最佳答案

I'm looking for a Maven artifact that includes Spring + Hibernate + JPA. The only one that I found is one that is mixed with Flex. For now, I want to keep it simple, and don't want to have to deal with the Flex added complexity.

我不知道有这样的 Artifact 。不管怎样,如果您只想升级一个供应商库,那么为不同的供应商库提供单独的 Artifact 可能是一个好主意。

When you download a Maven artifact such as one for Spring + Hibernate + JPA, do they already come with the necessary configuration, or Maven only handles the downloading of the libraries and files, and then I have to go in and add the necessary configuration?

通常,您需要做的配置很少,并且与您自己的环境直接相关,例如persistence.xml 用于数据库凭据和位置,这使得它无法随 Artifact 一起提供。

关于hibernate - 正在寻找 : Spring + Hibernate + JPA 的 Maven Artifact ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8261706/

相关文章:

java - Hibernate、websphere 和 DB2 数据库的集成问题

java - 无法将 getNamedQuery 结果转换为表类

java - hibernate : Generic JDBC exception - Bad format for Time '838:59:59'

java - Spring + Atmoting + Tomcat 线程泄漏

java - 如何在 Spring 中配置 AJAX/JSON(使用 Jackson)?

java - Spring JPA - 实体类包名称中的 "in"字 - 导致 JPQL 错误

java - 当对实体使用注释和 hbm 混合时,Spring/Hibernate 无法初始化 EntityManager

java - 我的不同 session 使用相同的最后一个 Activity 和 session ID 进行重复,为什么?

java - JPQL 测试值是否在数组中

maven - Eclipselink 元模型生成在 Maven 多模块项目中失败