jpa 数据库方言_java – 通过JDBC处理不同数据库方言的模式

我正在创建一个必须通过JDBC与不同数据库(Oracle,MSSQL,MySQL ……)一起工作的应用程序.我必须通过JDBC工作,因为我的应用程序调用这些数据库中的存储过程.

构建此类应用程序的最佳方法是什么?这有什么框架吗?

重要:解决方案必须很好地处理Spring Framework.

请告诉我你目前的选择.

最好的祝福,

马克斯

解决方法:

Hibernate通常是标准选项(也是我选择的选项).我更喜欢使用JPA而不是Hibernate,但如果您需要存储过程,那么这不是一个选项.但关于iBatis的评论:

虽然我自己没有iBatis的经验,但似乎iBatis的Spring支持并不差:

The iBATIS support in the Spring

Framework much resembles the JDBC

support in that it supports the same

template style programming, and as

with JDBC and other ORM technologies,

the iBATIS support works with Spring’s

exception hierarchy and lets you enjoy

Spring’s IoC features.

Transaction management can be handled

through Spring’s standard facilities.

No special transaction strategies are

necessary for iBATIS, because no

special transactional resource

involved other than a JDBC Connection.

Hence, Spring’s standard JDBC

DataSourceTransactionManager or

JtaTransactionManager are perfectly

sufficient.

标签:java,database,orm,spring,jdbc

来源: https://codeday.me/bug/20190626/1298822.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值