可以为ApachePhoenix编写hibernate方言吗?
我想为ApachePhoenix编写一个hibernate方言。最大的问题是insert语句的关键字是“Upsert”而不是“insert”。该关键字在org.hibernate.sql.Insert中声明。有可能为ApachePhoenix编写一种方言吗 来源可以为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创建的jdbc。您必须重写exceuteQuery()和updateQuery()函数。在这里,您必须将“insert”和“update”替换为“upsert”。
你怎么认为?我还没有对它进行测试。如果您对使用“胖”phoenix客户端没问题,那么这似乎非常有效:嘿,我刚刚考虑过同样的问题,发现了您的帖子-您成功构建了hibernate方言吗?