回答編集履歴

1

2015/02/13 02:57

投稿

muroiken
muroiken

スコア82

test CHANGED
@@ -1,17 +1,9 @@
1
1
  たぶん出来ないです。
2
2
 
3
-
4
-
5
3
  問題にされていることとは少し離れるかもですが、以下のページを見つけました。
6
-
7
- [http://stackoverflow.com/questions/20914451/mybatis-include-same-sql-fragment-multiple-times-for-joined-tables-of-same-typ](http://stackoverflow.com/questions/20914451/mybatis-include-same-sql-fragment-multiple-times-for-joined-tables-of-same-typ)
8
-
9
- [https://issues.apache.org/jira/browse/IBATIS-264](https://issues.apache.org/jira/browse/IBATIS-264)
10
-
11
-
4
+ http://stackoverflow.com/questions/20914451/mybatis-include-same-sql-fragment-multiple-times-for-joined-tables-of-same-typ
5
+ https://issues.apache.org/jira/browse/IBATIS-264
12
6
 
13
7
  要するに、「includeは静的に行われるので、代替手段を検討してくれ(超意訳)」ということみたいです。
14
-
15
8
  ただ、私も同じ問題に遭遇しましたが、動的なincludeを使用せずとも動的なjoinは実現できたので、何らかの回避策はあるはずです。
16
9
 
17
-