gpt4 book ai didi

spring - 使用 Spring-orm 的目的是什么?

转载 作者:行者123 更新时间:2023-12-01 15:30:39 25 4
gpt4 key购买 nike

我的项目中有以下 maven 依赖项。

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>2.5.6</version>
</dependency>

我们将 iBatis 用于 ORM。

  • 赋予这种依赖性的目的是什么?
  • 如果我在 Spring 和 iBatis 之间建立桥梁,是否需要这样做?
  • 一般情况下 Spring 和 iBatis 是如何联系起来的?

感谢您的回复。

最佳答案

What is the purpose of giving this dependency?Is this required if I to have bridge between Spring and iBatis?

它添加支持(胶水代码)以将各种 ORM 解决方案与 Spring 集成,包括 Hibernate 3/4、iBatis、JDO 和 JPA。当然它本身并不是一个ORM,它只是一个桥梁。您仍然需要包含相关的库。

In general how Spring and iBatis linked?

引用官方文档:12.5. iBATIS SQL Maps :

iBATIS support works with Spring's exception hierarchy and let's you enjoy the all IoC features Spring has.

Transaction management can be handled through Spring's standard facilities.

关于spring - 使用 Spring-orm 的目的是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13107700/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com