You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maxim Muzafarov (Jira)" <ji...@apache.org> on 2022/05/18 14:05:00 UTC

[jira] [Commented] (IGNITE-16124) deleteAllById has wrong signature

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

Maxim Muzafarov commented on IGNITE-16124:
------------------------------------------

[~YozFr]

Please, check the following:

https://search.maven.org/artifact/org.apache.ignite/ignite-spring-data-ext/2.0.0/jar
https://dist.apache.org/repos/dist/release/ignite/ignite-extensions/ignite-spring-data-ext/2.0.0/

> deleteAllById has wrong signature
> ---------------------------------
>
>                 Key: IGNITE-16124
>                 URL: https://issues.apache.org/jira/browse/IGNITE-16124
>             Project: Ignite
>          Issue Type: Bug
>          Components: extensions
>            Reporter: Michael Reiche
>            Assignee: Andrey Belyaev
>            Priority: Major
>
> java: name clash: deleteAllById(java.lang.Iterable<java.lang.Integer>) in org.apache.ignite.springdata20.repository.IgniteRepository and deleteAllById(java.lang.Iterable<? extends java.lang.Integer>) in org.springframework.data.repository.CrudRepository have the same erasure, yet neither overrides the other
> <properties>
> <spring.data.version>2.6.0-RC1</spring.data.version>
> <ignite.version>2.9.1</ignite.version>
> </properties>
> <dependencies>
> <dependency>
> <groupId>org.apache.ignite</groupId>
> <artifactId>ignite-spring-data_2.0</artifactId>
> <version>${ignite.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.ignite</groupId>
> <artifactId>ignite-core</artifactId>
> <version>${ignite.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.ignite</groupId>
> <artifactId>ignite-indexing</artifactId>
> <version>${ignite.version}</version>
> </dependency>
> <dependency>
> <groupId>org.apache.ignite</groupId>
> <artifactId>ignite-spring</artifactId>
> <version>${ignite.version}</version>
> </dependency>
> <dependency>
> <groupId>org.springframework.data</groupId>
> <artifactId>spring-data-commons</artifactId>
> <version>${spring.data.version}</version>
> </dependency>
>  
> If ignite-spring-data is used instead of ingite-spring-data_2.0,  the method deleteAll is flagged
> java: name clash: deleteAll(java.lang.Iterable<? extends com.example.ignite.EmployeeDTO>) in org.springframework.data.repository.CrudRepository and deleteAll(java.lang.Iterable<java.lang.Integer>) in org.apache.ignite.springdata.repository.IgniteRepository have the same erasure, yet neither overrides the other
> And 2.2-ext gives the following:
> <groupId>org.apache.ignite</groupId>
> <artifactId>ignite-spring-data-2.2-ext</artifactId>
> <version>1.0.0</version>
> java: name clash: deleteAllById(java.lang.Iterable<java.lang.Integer>) in org.apache.ignite.springdata22.repository.IgniteRepository and deleteAllById(java.lang.Iterable<? extends java.lang.Integer>) in org.springframework.data.repository.CrudRepository have the same erasure, yet neither overrides the other
> package com.example.ignite;
> import org.apache.ignite.springdata.repository.IgniteRepository;
> import org.apache.ignite.springdata.repository.config.RepositoryConfig;
> @RepositoryConfig(cacheName = "myCache")
> public interface EmployeeRepository<E,ID> extends IgniteRepository<EmployeeDTO, Integer>
> { EmployeeDTO getEmployeeDTOById(ID id); }



--
This message was sent by Atlassian Jira
(v8.20.7#820007)