ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evgenii Zhuravlev (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-5985) WebConsole: add generation of keyFields for queryEntity for multiple primary key
Date Tue, 08 Aug 2017 11:36:00 GMT

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

Evgenii Zhuravlev updated IGNITE-5985:
--------------------------------------
    Description: 
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="value" value="java.lang.Integer"/>
                </map>
            </property>
        </bean>
    </list>
</property>
{code}




> 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
>            Reporter: Evgenii Zhuravlev
>            Assignee: Alexey Kuznetsov
>
> 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="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