You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Konstantinov (JIRA)" <ji...@apache.org> on 2017/08/24 10:24:00 UTC

[jira] [Comment Edited] (IGNITE-5985) WebConsole: add generation of keyFields for queryEntity for multiple primary key

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

Pavel Konstantinov edited comment on IGNITE-5985 at 8/24/17 10:23 AM:
----------------------------------------------------------------------

Should we allow to set 'Key Field Name' and 'Key Fields' at the same time?
!screenshot-1.png!

Except this all works fine.


was (Author: pkonstantinov):
Should we allow to set 'Key Field Name' and 'Key Fields' at the same time?
!screenshot-1.png!

> WebConsole: add generation of keyFields for queryEntity for multiple primary key
> --------------------------------------------------------------------------------
>
>                 Key: IGNITE-5985
>                 URL: https://issues.apache.org/jira/browse/IGNITE-5985
>             Project: Ignite
>          Issue Type: Improvement
>    Affects Versions: 2.1
>            Reporter: Evgenii Zhuravlev
>            Assignee: Vasiliy Sisko
>             Fix For: 2.2
>
>         Attachments: screenshot-1.png
>
>
> For example, for table like
> {code:java}
> CREATE TABLE TABLE_NAME (
>     KEY1 int NOT NULL,
>     KEY2 int NOT NULL,
>     VALUE int,
>     PRIMARY KEY (KEY1,KEY2));
> {code}
> should be generated queryEntity like:
> {code:java}
> <property name="queryEntities">
>     <list>
>         <bean class="org.apache.ignite.cache.QueryEntity">
>             <property name="keyType" value="org.apache.ignite.examples.TableNameKey"/>
>             <property name="valueType" value="org.apache.ignite.examples.TableName"/>
>             <property name="keyFields">
>                 <set>
>                     <value>key1</value>
>                     <value>key2</value>
>                 </set>
>             </property>
>             <property name="fields">
>                 <map>
>                     <entry key="key1" value="java.lang.Integer"/>
>                     <entry key="key2" value="java.lang.Integer"/>
>                     <entry key="value" value="java.lang.Integer"/>
>                 </map>
>             </property>
>         </bean>
>     </list>
> </property>
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)