Hello!

I don't think you need both queryEntities and indexedTypes at the same time
(and there's probably a problem in your queryEntities too).

Regards,
-- 
Ilya Kasnacheev


пт, 12 окт. 2018 г. в 20:45, Skollur <skol...@idbny.com>:

> Getting an error Duplicate table name
> [cache=CustomerCache,tblName=CUSTOMER,
> type1=Customer, type2=Customer] when i tried to add index as below
>
> ccfg.setIndexedTypes(Long.class,Customer.class);
>
> public class Customer implements Serializable {
>     /** Value for dwId. */
>     @QuerySqlField(index = true)
>     private long dwId;
> }
>
> class CustomerCache{
>
> ....
>     qryEntities.add(qryEntity);
>     ccfg.setIndexedTypes(Long.class,Customer.class);
>     ccfg.setQueryEntities(qryEntities);
>     return ccfg;
> }
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Reply via email to