nic*_*671 6 apache hibernate phoenix dialect
我想为Apache Phoenix编写一个hibernate方言.最大的问题是insert语句的关键字是"Upsert"而不是"Insert".此关键字在org.hibernate.sql.Insert中声明.是否有可能为Apache Phoenix编写方言?
来源http://phoenix.apache.org/language/index.html#upsert_values
亲切的问候
我找到了一个理论上的解决方案。最简单的方法是覆盖 apache phoenix 创建的 jdbc。您必须重写executeQuery() 和updateQuery() 函数。您必须将“insert”和“update”替换为“upsert”。你怎么认为?我还没测试过。
| 归档时间: |
|
| 查看次数: |
1249 次 |
| 最近记录: |