Easy database queries for Java
Choosing Between Jinq 2.0 vs 1.8
Jinq 2.0.x is a small update from Jinq 1.8.x intended to keep Jinq current with the latest changes in the Java ecosystem. Unfortunately, these changes can break compatibility with previous versions of Jinq, so the version of number of Jinq has been changed to reflect this fact. Below is a summary of the differences between Jinq 2.0.x and Jinq 1.8.x:
Jinq 2.0.x
-
JPA and Hibernate support uses the new jakarta.persistence namespace
- Targets JDK 11
- Nonetheless, Jinq 2.0.x should continue to work with JDK 8
- Packaged as modules
-
org.jinq.jpa for JPA, org.jinq.hibernate for Hibernate, and org.jinq.jooq for jOOQ.
- It is no longer necessary to separately require the org.jinq.api module
- All Scala code removed
Jinq 1.8.x
-
JPA and Hibernate support uses the traditional JEE javax.persistence namespace
- Targets JDK 8
- Not modular, but has automatically named modules org.jinq.api, org.jinq.jpa, and org.jinq.hibernate that can be referred to if necessary
- Some limited support for Scala 2.11
Choosing a Version
If your project uses newer Jakarta EE libraries, then use Jinq 2.0.x. If your project uses traditional Java EE libraries, then use Jinq 1.8.x.