Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16124

deleteAllById has wrong signature

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • extensions
    • None
    • Docs Required, Release Notes Required

    Description

      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); }

      Attachments

        Issue Links

          Activity

            People

              andreybell Andrey Belyaev
              mikereiche Michael Reiche
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: