是否有可能为Apache Phoenix编写一个hibernate方言?

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

亲切的问候

nic*_*671 0

我找到了一个理论上的解决方案。最简单的方法是覆盖 apache phoenix 创建的 jdbc。您必须重写exe​​cuteQuery() 和updateQuery() 函数。您必须将“insert”和“update”替换为“upsert”。你怎么认为?我还没测试过。