I am trying to do this :
@Select("SELECT * FROM DGE_ADJUSTMENTS WHERE COD_ADJUSTMENT = #{id}")
@Results(id = "resultadoId", value = {
But The attribute id is undefined for the annotation type Results
I saw the documentation and I saw that you can do that. Any ideas?
My pom dependencies:
<dependency>
<groupId>org.apache.ibatis</groupId>
<artifactId>ibatis-core</artifactId>
<version>3.0</version>
</dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId> org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.2.2</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>2.0.7</version>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.9</version>
</dependency>
Ave fixed this.
Removing the ibatis-core dependency from pom.xml fixed the problem.