我的persistence.xml文件中没有kundera.ddl.auto.prepare" value="update"
;但是,当我尝试使用Kundera API将实体持久化到Cassandra时,我得到以下异常:
javax.persistence.PersistenceException:<b> InvalidRequestException(why:Undefined name affiliateTypeCodeAndBusinessAffiliateAccountNumber in where clause </B>('affiliateTypeCodeAndBusinessAffiliateAccountNumber EQ 'W177043432821''))
at com.impetus.client.cassandra.CassandraClientBase.executeCQLQuery(CassandraClientBase.java:1925) [kundera-cassandra-2.9.1-ATT-1.jar:na]
at com.impetus.client.cassandra.CassandraClientBase$CQLClient.executeQuery(CassandraClientBase.java:2101) [kundera-cassandra-2.9.1-ATT-1.jar:na]
at com.impetus.client.cassandra.CassandraClientBase.executeSelectQuery(CassandraClientBase.java:833) [kundera-cassandra-2.9.1-ATT-1.jar:na]
为什么我会收到此异常,以及我如何修复它?
答案 0 :(得分:0)
请分享更多细节。初看起来它看起来像CQL3案例敏感性问题
-Vivek