6

i would like to write an hibernate dialect for Apache Phoenix. The huge problem is that the keyword of an insert statement is "Upsert" instead of "Insert". This keyword is declared at org.hibernate.sql.Insert. Is there a possibility to write an dialect for Apache Phoenix ?

Source http://phoenix.apache.org/language/index.html#upsert_values

Kind regards

4

2 に答える 2

0

理論的な解決策を見つけました。最も簡単な方法は、apache phoenix によって作成された jdbc をオーバーライドすることです。executeQuery() および updateQuery() 関数をオーバーライドする必要があります。「insert」と「update」を「upsert」に置き換える必要があります。どう思いますか?まだテストしていません。

于 2014-11-08T11:14:46.387 に答える