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
Copy file name to clipboardExpand all lines: README.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,20 @@
1
1
# Java repository layer frameworks comparison
2
2
3
-
Comparison of usage of non-JPA SQL mapping (persistence) frameworks for Java (Jooq, Spring JDBCTemplate etc.).
3
+
Comparison of usage of non-JPA SQL mapping (persistence) frameworks for Java (Jooq, Spring JDBCTemplate, MyBatis etc.).
4
4
5
-
We are not comparing performance (that'll be maybe added later), but rather how are these frameworks used for everyday tasks.
5
+
We are not comparing performance, but rather how are these frameworks used for everyday tasks.
6
6
7
-
We prepared some common scenarios, which you typically need to implement data-centric application, and then we implemented these scenarios using various non-JPA DB layer frameworks.
7
+
We prepared some common scenarios, which you typically need to implement data-centric application, and then we implemented these scenarios using various non-JPA DB layer frameworks. This project should serve
8
+
- as point of reference when deciding for SQL mapping framework
9
+
- as a template of common framework usage scenarios (see scenarios below)
10
+
- to document best practices of such common usages (**comments are welcomed!**)
8
11
9
12
## Frameworks compared
10
13
11
14
* Spring JDBCTemplate (see [implementation](src/main/java/com/clevergang/dbtests/repository/impl/jdbctemplate/JDBCDataRepositoryImpl.java))
12
15
* jOOQ (see [implementation](src/main/java/com/clevergang/dbtests/repository/impl/jooq/JooqDataRepositoryImpl.java))
13
16
14
-
We tried to find optimal (== most readable) implementation in every framework, but comments are welcomed! There are lot of comments explaining why we chose to such implementation and some FIXMEs on places which we do not like, but which cannot be implemented differently or which we do not know how to improve...
17
+
We tried to find optimal (== most readable) implementation in every framework, but comments are welcomed! There are lot of comments explaining why we chose to such implementation and some FIXMEs on places which we do not like, but which cannot be implemented differently or which we have troubles to improve...
15
18
16
19
## Scenarios implemented
17
20
@@ -49,11 +52,6 @@ Well, we were trying to "stick with standard" in our projects so we used JPA in
49
52
50
53
So we dropped JPA completely, started using JDBCTemplate and discovered that we can deliver apps sooner (which was kind of surprising), they are a lot faster (thanks to effective use of DB) and much more robust... This was really relaxing and we do not plan to return to JPA at all... (yes, even for CRUD applications!)
51
54
52
-
This project aims to explore other options in the SQL mapping area than just JDBCTemplate. It should serve us
53
-
54
-
- as point of reference when deciding for SQL mapping framework
55
-
- as a template of common DB usage scenarios
56
-
- to document best practices of such common usages (**comments are welcomed!**)
57
-
55
+
This project aims to explore other options in the SQL mapping area than just JDBCTemplate.
58
56
59
57
**Use code in the repository as you like (MIT License)**
0 commit comments