Skip to content

Commit 093d9f8

Browse files
authored
Update README.md
1 parent 8a7b7d3 commit 093d9f8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,31 @@ Conditions on frameworks which I choose for consideration:
4343
4. The framework must be mature enough for "enterprise level" use
4444

4545
#### Subjective pros/cons of each framework
46+
> Reference:[java-persistence-frameworks-comparison](https://github.com/bwajtr/java-persistence-frameworks-comparison)
47+
4648
**Hibernate/JPA**
4749
* [Compare to JPA](http://ebean-orm.github.io/architecture/compare-jpa)
4850

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+
4971
**MyBatis**
5072
* Pros
5173
* Writing SQL statements in XML mapper file feels good - it's easy to work with parameters

0 commit comments

Comments
 (0)