Ok, so I got my code working reading/inserting/updating from/to C*, but I had
to manually set up the persistence.xml as below and change my
java.sql.Timestamp types in the class to java.util.Date types.
<persistence keyspace="mykeyspace" table="HistoryResult" ttl="2592000">
<tableOptions>
comment = 'Test table for Ignite/Cassandra connection'
AND read_repair_chance = 0.2
</tableOptions>
<keyPersistence class="com.gm.model.HistoryResultKey" strategy="POJO">
<partitionKey>
<field name="vin"/>
</partitionKey>
<clusterKey>
<field name="sessionId" column="session_id"/>
<field name="algorithmName" column="algorithm_name"/>
</clusterKey>
</keyPersistence>
<valuePersistence class="com.gm.model.HistoryResult" strategy="POJO"
serializer="org.apache.ignite.cache.store.cassandra.serializer.KryoSerializer">
<field name="vin"/>
<field name="sessionId" column="session_id"/>
<field name="sessionTime" column="session_time"/>
<field name="algorithmName" column="algorithm_name"/>
<field name="results"/>
<field name="analysisTime" column="analysis_time"/>
<field name="createdDate" column="created_dt"/>
<field name="createdBy" column="created_by"/>
<field name="modifiedDate" column="modified_dt"/>
<field name="modifiedBy" column="modified_by"/>
</valuePersistence>
</persistence>
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Ignite-with-Cassandra-questions-errors-tp9607p9877.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.