问题描述
我有一个 Spring Boot 应用程序,它连接到 Progress Open Edge 数据库(不是 postgree)。
但是我在尝试从进度表中获取数据时遇到了一些问题,当我调用诸如“findAll()”或“findById()”之类的方法时,它返回以下错误:
Table/view/synonynm "EMS2ESP.INTEG_TABLE_003C" cannot be found. (15814) (-210083)
但是,“EMS2ESP”数据库中确实存在“INTEG_TABLE_003C”。直接运行选择时,它可以正常工作。
我正在我的 application.properties 中尝试使用以下属性:
spring.datasource.url=jdbc:datadirect:openedge://HOM-DB-01:25475;databaseName=ems2esp
spring.datasource.username=sysprogress
spring.datasource.password=sysprogress
spring.datasource.driver-class-name=com.ddtek.jdbc.openedge.OpenEdgeDriver
spring.datasource.database-platform=org.hibernate.dialect.SQLServerDialect
这是我的实体之一:
@Entity
@Table(name = "INTEG_TABLE_003C")
@Data
public class Progress003c extends IntegTable003c {
// Class properties and etc...
}
我想让 Spring 从生成的查询中删除“EMS2ESP”模式,因为我看到一些在线帖子说这可能会导致上述错误。
我该怎么做?谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)