impetus-opensource/Kundera-Examples — Issue #8: OneToMany join - exception in entitymanager.find()
Author: vivekvrao
Created: 2012-02-29 04:56:05+00:00
State: open

For one to many join linked objects - I get the below exception in join. I have set the PERSON table to be a Super column.

The exception does say that "No indexed columns present" - but what exactly needs to be indexed? The personId (annotated with @Id) - is already indexed - isn't it?

- also I see the warning about cannot set personName etc. Why would I get that?

As somebody starting out with Kundera and Cassandra - It would be very useful if you could also include the "create" commands needed to execute the examples. I am unable to find the expected table structure in various cases.

thank you,
Vivek

====================================================================
com.impetus.client.cassandra.pelops.PelopsDataHandler - java.lang.IllegalArgumentException: Can not set java.lang.String field kundera.test.Person.personName to java.lang.String. Possible case of entity column in a super column family. Will be treated as a super column.
org.scale7.cassandra.pelops.exceptions.InvalidRequestException: No indexed columns present in index clause with operator EQ
at org.scale7.cassandra.pelops.exceptions.IExceptionTranslator$ExceptionTranslator.translate(IExceptionTranslator.java:47)
at org.scale7.cassandra.pelops.Operand.tryOperation(Operand.java:113)
at org.scale7.cassandra.pelops.Operand.tryOperation(Operand.java:66)
at org.scale7.cassandra.pelops.Selector.getKeySlices(Selector.java:1877)
at org.scale7.cassandra.pelops.Selector.getIndexedColumns(Selector.java:1898)
at org.scale7.cassandra.pelops.Selector.getIndexedColumns(Selector.java:1857)
at com.impetus.client.cassandra.pelops.PelopsClient.find(PelopsClient.java:651)
at com.impetus.kundera.persistence.AbstractEntityReader.computeGraph(AbstractEntityReader.java:149)
at com.impetus.kundera.persistence.PersistenceDelegator.find(PersistenceDelegator.java:755)
at com.impetus.kundera.persistence.EntityManagerImpl.find(EntityManagerImpl.java:106)
at kundera.test.TestKundera.main(TestKundera.java:46)
Caused by: InvalidRequestException(why:No indexed columns present in index clause with operator EQ)
at org.apache.cassandra.thrift.Cassandra$get_indexed_slices_result.read(Cassandra.java:14057)
at org.apache.cassandra.thrift.Cassandra$Client.recv_get_indexed_slices(Cassandra.java:810)
at org.apache.cassandra.thrift.Cassandra$Client.get_indexed_slices(Cassandra.java:782)