Re: ORM layer for cassandra-java?

2016-02-12 Thread Atul Saroha
Thanks for the reply. We would go with solution 1. One more thing, which might be a bug. We are using 4.0.1 version. And query of solution 2 is not possible. c3 is cluster key. No option is visible for this cluster key: 1. we cannot use it in set (manager.dsl().update().fromBaseTable().)

Re: ORM layer for cassandra-java?

2016-02-12 Thread DuyHai Doan
"How could I achieve Delta Update through this ORM where I want to inserting one row for id,c3,c4 columns only" 2 ways: 1. Create an empty PrimeUser entity with only id, c3 and c4 values. Use manager .crud() .insert(entity)

Re: ORM layer for cassandra-java?

2016-02-12 Thread Atul Saroha
sorry I was my understanding issue of solution 2. Thanks for the solution - Atul Saroha *Sr. Software Engineer* *M*: +91 8447784271 *T*: +91 124-415-6069 *EXT*: 12369 Plot # 362,

Re: ORM layer for cassandra-java?

2016-02-12 Thread DuyHai Doan
"we cannot use it in set (manager.dsl().update().fromBaseTable().)" --> normal and intended, it is forbidden to update a column which belongs to the primary key. On Fri, Feb 12, 2016 at 1:50 PM, Atul Saroha wrote: > sorry I was my understanding issue of solution 2.

Re: ORM layer for cassandra-java?

2016-02-12 Thread Atul Saroha
Thanks Doan, We are now evaluating or nearly finalized to use Achilles. We are looking for one use case. As I mentioned in above for static columns. > CREATE TABLE IF NOT EXISTS ks.PrimeUser( > id int, > c1 text STATIC, > c2 boolean STATIC, > c3 text, > c4 text, > PRIMARY KEY (id,

Re: ORM layer for cassandra-java?

2016-02-09 Thread DuyHai Doan
Look at Achilles and how it models Partition key & clustering columns: https://github.com/doanduyhai/Achilles/wiki/5-minutes-Tutorial#clustered-entities On Tue, Feb 9, 2016 at 12:48 PM, Atul Saroha wrote: > I know the most popular ORM api > >1. Kundera : > >

ORM layer for cassandra-java?

2016-02-09 Thread Atul Saroha
I know the most popular ORM api 1. Kundera : https://github.com/impetus-opensource/Kundera/wiki/Using-Compound-keys-with-Kundera 2. Hector (outdated- no longer in development) I am bit confuse to model this table into java domain entity structure CREATE TABLE IF NOT EXISTS