I tried to implement an example of Spring Boot with the usage of jpaStreamer
. I use Intellij Idea
to handle with it. I have a problem in jpaStreamer.stream
.
Here are the dependencies shown below
<jpastream.version>1.1.4</jpastream.version>
<dependency>
<groupId>com.speedment.jpastreamer</groupId>
<artifactId>jpastreamer-core</artifactId>
<version>${jpastream.version}</version>
</dependency>
<dependency>
<groupId>com.speedment.jpastreamer.integration.spring</groupId>
<artifactId>spring-boot-jpastreamer-autoconfigure</artifactId>
<version>${jpastream.version}</version>
</dependency>
Here is the sample method of UserService shown below
public List<User> findAllForJpaStreamer() {
return jpaStreamer.stream(User.class).
sorted(User$.id).
collect(Collectors.toList());
}
I get this error message shown below
Cannot resolve symbol 'User$'
Here is the screenshot shown below
How can I fix it?
Here is the repo : Link
I fixed the issue. It caused by the version of jpastream.version
. After I defined it as 3.0.3
in pom.xml, the problem disappeared.
<jpastream.version>3.0.3</jpastream.version>