[ 
https://issues.apache.org/jira/browse/IGNITE-3485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15381891#comment-15381891
 ] 

Pavel Tupitsyn commented on IGNITE-3485:
----------------------------------------

* QueryEntity.ValueTypeName is a Java type name, as specified in the xmldoc.
* type properties in app.config (such as queryEntity.keyType) require 
fully-qualified type name, including assembly name:
{code}
<queryEntity keyType="System.Int32" 
valueType="OrderEntityDataIgnite.OrderEntity, OrderEntityDataIgnite" />
{code}

> .Net: SqlFieldsQuery doesn't work if App.config is used for statup and type 
> configuration
> -----------------------------------------------------------------------------------------
>
>                 Key: IGNITE-3485
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3485
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 1.6
>            Reporter: Denis Magda
>            Assignee: Pavel Tupitsyn
>            Priority: Critical
>             Fix For: 1.7
>
>         Attachments: OrderEntityDataIgnite.zip
>
>
> If to specify a type in App.config this
> {code}
> <typeConfigurations>
>           <binaryTypeConfiguration 
> typeName='OrderEntityDataIgnite.OrderEntity'/>
>         </typeConfigurations>
> {code}
> or that way
> {code}
> <types>
>        <string>OrderEntityDataIgnite.OrderEntity</string> 
> </types>
> {code}
> and set the query entity for the given type
> {code}
>     <cacheConfiguration>
>       <cacheConfiguration name="OrderCache" cacheMode="Replicated">
>         <queryEntities>
>           <queryEntity keyTypeName="System.Int32" 
> valueTypeName="OrderEntityDataIgnite.OrderEntity">
>           </queryEntity>
>         </queryEntities>
>       </cacheConfiguration>
>     </cacheConfiguration>
> {code}
> Then SqlFields query won't work. 
> To reproduce use attached sample project:
> - uncomment the following gin Program.cs
> {code}
> //QueryList.Add("select OrderId, OrderName, OrderValue, OrderAddress from 
> OrderEntity");
> {code}
> - start Program.cs



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to