0

I tried working with a difffrent dependency but it seems that it requires different configuration :

   <!-- https://mvnrepository.com/artifact/io.crnk/crnk-jpa -->
    <dependency>
        <groupId>io.crnk</groupId>
        <artifactId>crnk-jpa</artifactId>
        <version>2.5.20180326220647</version>
        <scope>test</scope>
    </dependency>

this is the exemple that I am trying to implement in my work i found the link in the official documentation of crnk
https://github.com/crnk-project/crnk-example/blob/master/crnk-example-service/src/main/java/io/crnk/example/service/repository/VoteRepository.java

package com.example.json_api_test.Repository;
import com.example.json_api_test.Entity.User;
import io.crnk.jpa.JpaEntityRepository;
import io.crnk.jpa.JpaModule;
import io.crnk.jpa.JpaRepositoryConfig;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.UUID;

@Component
public class UserRepository extends JpaEntityRepository<User, UUID>{


     public UserRepository() {

    super(User.class);  
}
}
this is the error I get 

'JpaEntityRepository(io.crnk.jpa.JpaModule, io.crnk.jpa.JpaRepositoryConfig<com.example.json_api_test.Entity.User>)' in 'io.crnk.jpa.JpaEntityRepository' cannot be applied to '(java.lang.Class<com.example.json_api_test.Entity.User>)'

0 Answers0