ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Konstantinov (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (IGNITE-5985) WebConsole: add generation of keyFields for queryEntity for multiple primary key
Date Fri, 25 Aug 2017 03:43:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-5985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pavel Konstantinov closed IGNITE-5985.
--------------------------------------

> 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: Pavel Konstantinov
>             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)

Mime
View raw message