Go to file
2013-08-23 17:35:55 +02:00
jOOQ [#2708] Wrong SQL rendered for CAST(x AS DECIMAL(y, z)). Precision and 2013-08-23 17:21:46 +02:00
jOOQ-codegen [#2706] Generate "full" constructors in records, allowing to construct a 2013-08-23 17:35:55 +02:00
jOOQ-codegen-maven Release 3.2.0-SNAPSHOT 2013-07-02 10:52:33 +02:00
jOOQ-codegen-maven-example [#2608] Error in code generator when the sqlite_sequence table is 2013-07-05 09:56:23 +02:00
jOOQ-console Release 3.2.0-SNAPSHOT 2013-07-02 10:52:33 +02:00
jOOQ-liquibase Release 3.1.0-SNAPSHOT 2013-05-01 18:04:58 +02:00
jOOQ-meta [#2707] PostgreSQL ENUM ordering is inconsistent with the database 2013-08-23 16:51:09 +02:00
jOOQ-release Release 3.1.0 - Updated Ant 2013-06-30 17:58:40 +02:00
jOOQ-scala [#2595] Add implicit conversions from Scala functions to 2013-07-03 14:41:07 +02:00
jOOQ-test [#2706] Generate "full" constructors in records, allowing to construct a 2013-08-23 17:35:55 +02:00
jOOQ-tools [#2595] Add implicit conversions from Scala functions to 2013-07-03 14:41:07 +02:00
jOOQ-website Fixed external link tracking 2013-08-22 14:43:42 +02:00
.gitignore Added .gitignore for /target 2012-05-22 21:33:40 +02:00
.travis.yml Added .travis.yml 2013-07-04 15:29:08 +02:00
authors.txt Fixed author name 2012-02-26 08:34:00 +00:00
LICENSE Updated copyright date from 2009-2011 to 2009-2012 2012-02-27 18:40:53 +00:00
pom.xml Added GA to Javadoc 2013-07-22 12:16:02 +02:00
README.md Update README.md 2013-05-25 14:37:56 +03:00

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 on Wordpress.