正确的OJDBC jar文件版本

时间:2017-03-29 14:49:11

标签: java hibernate oracledb

我尝试使用最新的hibernate 5.2.9检查从4.2.1升级项目的新功能和性能。

如何选择要导入的相应ojdbc jar文件?目前我们正在使用Oracle 11g

1 个答案:

答案 0 :(得分:0)

ojdbc6可以Oracle 11g对我使用<dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0.3</version> </dependency>

如果您使用的是Maven,则可以使用此依赖项:

public class MyCustomRowDto
{
        public int CityId { get; set; }
        public string CityName { get; set; }
        public string CityDescription { get; set; }

        public int PointsofInterestId { get; set; }
        public string PointsofInterestName { get; set; }
        public string PointsofInterestDescription { get; set; }
}