Eclipse Link 是否与 Vertica 一起工作

发布于 2024-12-06 12:24:28 字数 131 浏览 1 评论 0原文

我目前正在测试vertica。由于 vertica 有一个 jdbc 驱动程序,因此应该可以使其工作。

有没有一种简单的方法让 Eclipse 链接支持 vertica? 是否有支持它的替代 orm 框架(如 hibernate)?

i'm currently testing vertica. Since vertica has a jdbc driver it should be possible to get it working.

Is there a simple way to get Eclipse link to support vertica?
Are there alternative orm framework (like hibernate) that support it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

浪漫之都 2024-12-13 12:24:28

只要您有兼容的 JDBC 驱动程序,EclipseLink 就可以与 Vertica 配合使用。

某些功能(例如 DDL 生成)可能需要自定义 DatabasePlatform 类,您可以根据需要创建该类。大多数功能应该与通用数据库平台一起使用。

您遇到任何具体问题吗?

As long as you have a compliant JDBC driver EclipseLink should work with Vertica.

Some features such as DDL generation, may require a custom DatabasePlatform class, which you could create if required. Most features should work with the generic DatabasePlatform.

Are you encountering any specific issues?

神爱温柔 2024-12-13 12:24:28

根据 Vertica 支持,Hibernate 查询可与 org.hibernate.dialect.PostgreSQLDialect 配合使用,虽然这是事实,但仍然存在一些问题(特别是 hbm2ddl),只能使用自定义方言来修复。

其中包括:

  • 数据类型映射:没有 4 字节数据类型,因此默认的 java int 到 int4 的映射不起作用。其他几种类型也是如此。
  • 没有索引:由于显而易见的原因,vertica 不知道创建索引,如果您的模型包含 @index 注释,请删除它们,

不确定 postgres 与 vertica 有多远,但使用我自己的继承 postgres 方言的自定义方言,到目前为止一切正常。

According to the Vertica Support Hibernate queries works with the org.hibernate.dialect.PostgreSQLDialect while this is true there are still some problems (exspecially with hbm2ddl) that can only be fixed with a custom dialect.

Among those are:

  • data type mapping: there are no 4 byte datatypes, so the default java int mapping to int4 doesn't work. same goes for several other types.
  • no indexes: for obvious reasons vertica doesn't know create index, if your model contains @index annotations, remove them

not sure how far postgres is from vertica but with my own custom dialect that inherits the postgres dialect everything works so far.

葬シ愛 2024-12-13 12:24:28

我们最近尝试让 Hibernate 与 vertica 一起工作,但没有成功。问题之一是该组合的方言不存在。
在咨询了 Vertica 顾问后,得到的答案是,没有计划提供此类支持,因为像 hibernate 这样的 ORM 和像 Vertica 这样的数据库提供了不同的数据存储方法。

We recently tried to get Hibernate working with vertica unsuccessfully. One of the problems was an inexistent dialect for that combination.
After consulting a Vertica consultant the answer was that there is no plans to provide this sort of support as ORMs like hibernate and a DB like Vertica provide different approaches for data storage.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文