回答編集履歴
1
途中で返答を送信してしまいました。
test
CHANGED
@@ -7,3 +7,61 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
自分から見てもちょっとおかしくて、一応同じ仕組みで実装してみましたけど普通に動きました。IDEでのバグかと思います。もしEclipseを使ってるのでしたら、また別の問題ですけど…
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
それで解決法としては、単純にこうしてみてください。
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
```java
|
18
|
+
|
19
|
+
package com.example.sample.domain.repository;
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
import com.example.sample.domain.model.SampleEntity;
|
26
|
+
|
27
|
+
import org.seasar.doma.Dao;
|
28
|
+
|
29
|
+
import org.seasar.doma.Select;
|
30
|
+
|
31
|
+
import org.seasar.doma.boot.ConfigAutowireable;
|
32
|
+
|
33
|
+
import org.springframework.stereotype.Repository;
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
import java.util.List;
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
@ConfigAutowireable
|
42
|
+
|
43
|
+
@Dao
|
44
|
+
|
45
|
+
@Repository // <- 追加
|
46
|
+
|
47
|
+
public interface SampleRepository {
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
@Select
|
52
|
+
|
53
|
+
List<SampleEntity> selectAll();
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
https://github.com/yeondev/spring-doma-test/blob/master/src/main/java/com/example/sample/domain/repository/SampleRepository.java
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
一応動いてくれるみたいですが、ダメだったら言ってください。
|