Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/hibernate/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
可以为ApachePhoenix编写hibernate方言吗?_Apache_Hibernate_Dialect_Phoenix - Fatal编程技术网

可以为ApachePhoenix编写hibernate方言吗?

可以为ApachePhoenix编写hibernate方言吗?,apache,hibernate,dialect,phoenix,Apache,Hibernate,Dialect,Phoenix,我想为ApachePhoenix编写一个hibernate方言。最大的问题是insert语句的关键字是“Upsert”而不是“insert”。该关键字在org.hibernate.sql.Insert中声明。有可能为ApachePhoenix编写一种方言吗 来源 我找到了一个理论上的解决办法。最简单的方法是重写ApachePhoenix创建的jdbc。您必须重写exceuteQuery()和updateQuery()函数。在这里,您必须将“insert”和“update”替换为“upsert”。

我想为ApachePhoenix编写一个hibernate方言。最大的问题是insert语句的关键字是“Upsert”而不是“insert”。该关键字在org.hibernate.sql.Insert中声明。有可能为ApachePhoenix编写一种方言吗

来源


我找到了一个理论上的解决办法。最简单的方法是重写ApachePhoenix创建的jdbc。您必须重写exceuteQuery()和updateQuery()函数。在这里,您必须将“insert”和“update”替换为“upsert”。
你怎么认为?我还没有对它进行测试。

如果您对使用“胖”phoenix客户端没问题,那么这似乎非常有效:

嘿,我刚刚考虑过同样的问题,发现了您的帖子-您成功构建了hibernate方言吗?