Go to file
Lukas Eder 3f38845132
Use CURRENT_TIMESTAMP instead of CURTIME
In MariaDB, `UNIX_TIMESTAMP(CURTIME(4))` yields `NULL`, not a meaningful value. It's better to work with `TIMESTAMP` anyway, than with `TIME` types, just in case the benchmark is run at midnight
2021-10-25 09:24:10 +02:00
.github/ISSUE_TEMPLATE [jOOQ/jOOQ#12315] Wrong procedure declaration generated in MySQL when using IN parameters with VARCHAR(length) types 2021-08-18 10:42:17 +02:00
jOOQ [jOOQ/jOOQ#12549] Use JSON_EXTRACT() instead of JSON_QUERY() 2021-10-25 09:22:38 +02:00
jOOQ-checker Release 3.16.0-SNAPSHOT 2021-07-05 17:30:40 +02:00
jOOQ-codegen [jOOQ/jOOQ#10149] Duh exports, not opens! 2021-10-21 16:27:05 +02:00
jOOQ-codegen-maven [jOOQ/jOOQ#12434] CVE-2021-26291 via maven-core-3.6.3 dependency 2021-09-17 14:30:42 +02:00
jOOQ-examples Use CURRENT_TIMESTAMP instead of CURTIME 2021-10-25 09:24:10 +02:00
jOOQ-kotlin Release 3.16.0-SNAPSHOT 2021-07-05 17:30:40 +02:00
jOOQ-meta Revert some IntelliJ inspection improvements 2021-10-21 15:59:10 +02:00
jOOQ-meta-extensions Release 3.16.0-SNAPSHOT 2021-07-05 17:30:40 +02:00
jOOQ-meta-extensions-hibernate Release 3.16.0-SNAPSHOT 2021-07-05 17:30:40 +02:00
jOOQ-meta-extensions-liquibase [jOOQ/jOOQ#11659] Upgrade Liquibase dependency of 2021-07-20 16:11:15 +02:00
jOOQ-migrations Release 3.16.0-SNAPSHOT 2021-07-05 17:30:40 +02:00
jOOQ-postgres-extensions [jOOQ/jOOQ#10149] Duh exports, not opens! 2021-10-21 16:27:05 +02:00
jOOQ-scala_2.13 Release 3.16.0-SNAPSHOT 2021-07-05 17:30:40 +02:00
jOOQ-xtend Release 3.16.0-SNAPSHOT 2021-07-05 17:30:40 +02:00
.gitignore [jOOQ/jOOQ#11700] Add a jOOQ-r2dbc module (ignore for now) 2021-03-23 09:16:39 +01:00
.travis.yml Travis: use Maven 3.6.2 2019-09-22 13:23:21 -07:00
authors.txt
CONTRIBUTING.md Update CONTRIBUTING.md 2021-02-19 21:00:32 +01:00
LICENSE
pom.xml Upgrade Spring Boot dependency (for examples) 2021-10-15 09:32:37 +02:00
README.md

jOOQ's reason for being - compared to JPA

Java and SQL have come a long way. SQL is an "ancient", yet established and well-understood technology. Java is a legacy too, although its platform JVM allows for many new and contemporary languages built on top of it. Yet, after all these years, libraries dealing with the interface between SQL and Java have come and gone, leaving JPA to be a standard that is accepted only with doubts, short of any surviving options.

So far, there had been only few database abstraction frameworks or libraries, that truly respected SQL as a first class citizen among languages. Most frameworks, including the industry standards JPA, EJB, Hibernate, JDO, Criteria Query, and many others try to hide SQL itself, minimising its scope to things called JPQL, HQL, JDOQL and various other inferior query languages

jOOQ has come to fill this gap.

jOOQ's reason of being - compared to LINQ

Other platforms incorporate ideas such as LINQ (with LINQ-to-SQL), or Scala's SLICK, or also Java's QueryDSL to better integrate querying as a concept into their respective language. By querying, they understand querying of arbitrary targets, such as SQL, XML, Collections and other heterogeneous data stores. jOOQ claims that this is going the wrong way too.

In more advanced querying use-cases (more than simple CRUD and the occasional JOIN), people will want to profit from the expressivity of SQL. Due to the relational nature of SQL, this is quite different from what object-oriented and partially functional languages such as C#, Scala, or Java can offer.

It is very hard to formally express and validate joins and the ad-hoc table expression types they create. It gets even harder when you want support for more advanced table expressions, such as pivot tables, unnested cursors, or just arbitrary projections from derived tables. With a very strong object-oriented typing model, these features will probably stay out of scope.

In essence, the decision of creating an API that looks like SQL or one that looks like C#, Scala, Java is a definite decision in favour of one or the other platform. While it will be easier to evolve SLICK in similar ways as LINQ (or QueryDSL in the Java world), SQL feature scope that clearly communicates its underlying intent will be very hard to add, later on (e.g. how would you model Oracle's partitioned outer join syntax? How would you model ANSI/ISO SQL:1999 grouping sets? How can you support scalar subquery caching? etc...).

jOOQ has come to fill this gap.

jOOQ is different

SQL was never meant to be abstracted. To be confined in the narrow boundaries of heavy mappers, hiding the beauty and simplicity of relational data. SQL was never meant to be object-oriented. SQL was never meant to be anything other than... SQL!

For more details please visit jooq.org.

Follow jOOQ on Twitter and the jOOQ blog.