回答編集履歴
1
JOINについて追記
test
CHANGED
@@ -2,24 +2,40 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|
5
|
+
# できればSQLのチューニングを行いたい。
|
6
|
-
|
7
|
-
mybatis : http://www.mybatis.org/mybatis-3/dynamic-sql.html
|
8
|
-
|
9
|
-
hibernate : https://docs.jboss.org/hibernate/entitymanager/3.5/reference/en/html/querycriteria.html
|
10
6
|
|
11
7
|
|
12
8
|
|
13
|
-
|
9
|
+
* mybatis : [dynamic-sql](http://www.mybatis.org/mybatis-3/dynamic-sql.html)
|
14
10
|
|
15
|
-
|
11
|
+
* hibernate : [querycriteria](https://docs.jboss.org/hibernate/entitymanager/3.5/reference/en/html/querycriteria.html)
|
16
12
|
|
13
|
+
|
14
|
+
|
15
|
+
# エンティティなどはDBから自動生成したい。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
* mybatis : [mybatis-generator](http://www.mybatis.org/generator/)
|
20
|
+
|
17
|
-
|
21
|
+
* hibernate : [hibernate-tools](http://hibernate.org/tools/)
|
18
22
|
|
19
23
|
|
20
24
|
|
21
25
|
・遅延読み込みは性能面から使いたくはない。
|
22
26
|
|
23
|
-
mybatis : fetchType="eager"
|
24
27
|
|
28
|
+
|
29
|
+
* mybatis : fetchType="eager"
|
30
|
+
|
25
|
-
|
31
|
+
* hibernate : lazy="false"
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
# JOIN
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
* mybatis : [association](http://www.mybatis.org/mybatis-3/ja/sqlmap-xml.html)
|
40
|
+
|
41
|
+
* hibernate : [***-to-***](https://docs.jboss.org/hibernate/orm/3.6/reference/ja-JP/html/collections.html)
|