kundera

Kundera persistence entity definition with partition key and cluster key

℡╲_俬逩灬. 提交于 2019-12-11 04:26:56
问题 I am trying to use Kundera for connecting to Cassandra. In my case I have an Entity X with Partition Key {A,B} and cluster key {C}. We have multiple values of C for each A and B combination(primary key). So in such case how should be define the entity? @Embeddable public class PrimayKey implements Serializable{ @Column(name = "A") private String a; @Column(name = "B") private String b; } @Entity @Table(name = "X") public class X{ @EmbeddedId private PrimayKey key; @Column(name = "C") private

About Java Cassandra Client, which one is better? How about CQL? [closed]

五迷三道 提交于 2019-12-09 08:04:02
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I am trying to develop application using Hive as the Database, and then I also find noSQL solutions as an alternative to it. Now decided to develop using Cassandra, my next problem is about what client should I use? which one is better, Hector -- a pure java solutions, or Kundera

Kundera Cassandra JPQL with Compound Key

二次信任 提交于 2019-12-08 20:47:32
Am using Kundera JPA for Cassandra. Kundera version is: 3.8 Here are my Entity definitions:- @Embeddable public class PartitionKey implements Serializable { @Column(name = "ID") private String Id; @Column (name = "TYPE") private String Type; } @Embeddable public class CompoundKey implements Serializable { @Embedded private PartitionKey partitionKey; @Column(name = "LABEL") private String label; } @Embeddable public class Comment { @Column(name="comment") private String comment; } @Entity @Table(name = "MY_ENTITY", schema = "xyz@cassandra_pu") public class MyEntity { @EmbeddedId private

No Entity metadata found for the class

本小妞迷上赌 提交于 2019-12-08 05:49:01
问题 I'm back with the same problem ... I'm trying to uses queries in my Cassandra DB with Kundera (Cassandra ORM), this queries work in an others project but when I try to do it in webapp (using tomcat 6.0), I got this error : com.impetus.kundera.metadata.KunderaMetadataManager - No Entity metadata found for the class => JavaNullPointerException. But when I leave the persistence.xml from my project I got an other error. (NoPersistence.xml found or something ... ) So, my project found Persistence

Beginning Cassandra — Use Kundera? Something else? [closed]

怎甘沉沦 提交于 2019-12-04 11:20:25
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 3 years ago . We are in the process of getting our feet wet with Cassandra. None of us have any experience with this particular platform, but are experienced developers with JavaEE, JPA, etc. I came across the Kundera library that provides a JPA implementation compatible with several NoSQL

com.impetus.kundera.query.QueryHandlerException: No entity found by the name: <EntityName>

萝らか妹 提交于 2019-12-02 16:19:07
问题 I am getting the following error when I run my application through SBT Console in Intellij IDEA 15, when the list page is opened which shows records from database: com.impetus.kundera.query.QueryHandlerException: No entity found by the name: Employee at com.impetus.kundera.query.KunderaQuery.initEntityClass(KunderaQuery.java:608) ~[kundera-core-3.2.jar:na] at com.impetus.kundera.query.KunderaQuery.postParsingInit(KunderaQuery.java:540) ~[kundera-core-3.2.jar:na] at com.impetus.kundera.query

com.impetus.kundera.query.QueryHandlerException: No entity found by the name: <EntityName>

和自甴很熟 提交于 2019-12-02 11:18:28
I am getting the following error when I run my application through SBT Console in Intellij IDEA 15, when the list page is opened which shows records from database: com.impetus.kundera.query.QueryHandlerException: No entity found by the name: Employee at com.impetus.kundera.query.KunderaQuery.initEntityClass(KunderaQuery.java:608) ~[kundera-core-3.2.jar:na] at com.impetus.kundera.query.KunderaQuery.postParsingInit(KunderaQuery.java:540) ~[kundera-core-3.2.jar:na] at com.impetus.kundera.query.QueryResolver.getQueryImplementation(QueryResolver.java:86) ~[kundera-core-3.2.jar:na] at com.impetus

Cassandra vs logging activity

℡╲_俬逩灬. 提交于 2019-12-02 01:24:25
I'm using Cassandra with Kundera. My question is easy... Is any way to log all queries / request to Cassandra ? I'd like to know what exactly happens on server site :) Regards Tom Enable DEBUG logging for org.apache.cassandra.thrift.CassandraServer Enable DEBUG logging for org.apache.cassandra.transport.Message: log4j.logger.org.apache.cassandra.transport.Message=DEBUG This logs only PreparedStatements!! for example: DEBUG [Native-Transport-Requests:167] 2015-06-01 15:56:15,186 Message.java (line 302) Received: PREPARE INSERT INTO dba_test.cust_view (leid, vid, geoarea, ver) VALUES (?, ?, ?, ?

Where do I put META-INF in Eclipse?

独自空忆成欢 提交于 2019-11-28 08:09:39
I'm using the Kundera tutorial at https://github.com/impetus-opensource/Kundera/wiki/Getting-Started-in-5-minutes . Eclipse does not find it when I create a folder META-INF at the project root and place persistence.xml in it. I did a quick search and there was no real solution posted. There is no valid reason why a simple file path should be difficult to configure. I'm looking for a simple answer to what should be a simple issue. It shouldn't be at the project root, but directly under the source folder. At runtime, the persistence.xml file is searched in the classpath, under META-INF. So if

Where do I put META-INF in Eclipse?

馋奶兔 提交于 2019-11-27 02:10:33
问题 I'm using the Kundera tutorial at https://github.com/impetus-opensource/Kundera/wiki/Getting-Started-in-5-minutes. Eclipse does not find it when I create a folder META-INF at the project root and place persistence.xml in it. I did a quick search and there was no real solution posted. There is no valid reason why a simple file path should be difficult to configure. I'm looking for a simple answer to what should be a simple issue. 回答1: It shouldn't be at the project root, but directly under the