Hi Denis,

updated - I'm hitting the NPE bug
(https://issues.apache.org/jira/browse/IGNITE-13431) because I'm using
Cassandra as the data store, and key persistence strategy PRIMITIVE in the
original test.  When I switched to a composite key, it worked.  Not when
this bug gets fixed.  

-- this fails
<persistence keyspace="ignitetest" table="dim_product">
    <keyPersistence class="java.lang.Long" strategy="PRIMITIVE"
column="id"/>
    <valuePersistence class="com.procurant.model.DimProduct" strategy="POJO"
> 
    <field name="id" column="id" />
    <field name="name" column="name" />
    <field name="price" column="price" />
    <field name="qty" column="qty" />
    </valuePersistence>
</persistence>

-- this works
    <keyPersistence class="com.procurant.model.FactPurchaseLineKey"
strategy="POJO">
                <partitionKey>
            <field name="id" column="id" />
            <field name="factId" column="factid" />
        </partitionKey>    
    </keyPersistence>



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to