You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Compare to JPA](http://ebean-orm.github.io/architecture/compare-jpa)
48
50
51
+
**JDBC Template**
52
+
* Pros
53
+
* Feels like you are very close to JDBC itself
54
+
* Implemented all of the scenarios without bigger issues - there were no hidden surprises
55
+
* Very easy batch operations
56
+
* Easy setup
57
+
* Cons
58
+
* Methods in JDBCDataRepositoryImpl are not much readable - that's because you have to inline SQL in Java code. It would have been better if Java supported multiline strings.
59
+
* Debug logging could be better
60
+
61
+
**jOOQ**
62
+
* Pros
63
+
* Very fluent, very easy to write new queries, code is very readable
64
+
* Once setup it's very easy to use, excellent for simple queries
65
+
* Awesome logger debug output
66
+
* Cons
67
+
* Paid license for certain databases - it'll be difficult to persuade managers that it's worth it :)
68
+
* Not so much usable for big queries - it's better to use native SQL (see scenario 9.)
69
+
* Weird syntax of batch operations (in case that you do not use UpdatableRecord). But it's not a big deal...
70
+
49
71
**MyBatis**
50
72
* Pros
51
73
* Writing SQL statements in XML mapper file feels good - it's easy to work with parameters
0 commit comments