Jakarta Persistence for the Employees Sample Database.
platform / framework | version | notes |
---|---|---|
Jakarta Persistence | Jakarta Persistence 3.2 | |
Jakarta Persistence | Jakarta Persistence 3.1 | |
Spring Boot Dependency Versions (current) | :jakarta.persistence-api:3.1.0 |
|
Spring Boot Dependency Versions (3.2.5) | :jakarta.persistence-api:3.1.0 |
|
Spring Boot Dependency Versions (3.2.4) | :jakarta.persistence-api:3.1.0 |
The latest LTS is required to build/run this module.
$ grep \<maven\\.compiler\\. pom.xml
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>${maven.compiler.source}</maven.compiler.target>
<maven.compiler.release>${maven.compiler.target}</maven.compiler.release>
<maven.compiler.testSource>${maven.compiler.source}</maven.compiler.testSource>
<maven.compiler.testTarget>${maven.compiler.testSource}</maven.compiler.testTarget>
<maven.compiler.testRelease>${maven.compiler.testTarget}</maven.compiler.testRelease>
$ tree -d -L 2 --charset=ascii src
src
|-- main
| |-- java
| |-- java-application
| |-- java-application-jakarta-ee
| |-- java-application-spring-boot
| |-- java-persistence
| |-- java-querydsl
| |-- resources
| |-- resources-application
| |-- resources-application-jakarta--ee
| |-- resources-application-spring-boot
| |-- resources-persistence
| `-- resources-querydsl
`-- test
|-- java
|-- java-application
|-- java-application-jakarta-ee
|-- java-framework-quarkus
|-- java-framework-spring-boot
|-- java-persistence
|-- java-querydsl
|-- resources
|-- resources-application
|-- resources-application-jakarta-ee
|-- resources-application-spring-boot
|-- resources-framework-quarkus
|-- resources-persistence
|-- resources-querydsl
`-- sql
- ✅ - should be selected
- ✓ - either one should be selected
Profiles | Java | Jakarta Persistence | Querydsl | Jakarta EE | Spring Boot | Notes |
---|---|---|---|---|---|---|
application | ✅ | ✅ | ||||
application-jakarta-ee | ✅ | |||||
application-spring-boot | ✅ | |||||
failsafe | ✅ | ✅ | ✅ | ✅ | for ITs | |
persistence | ✅ | ✅ | ||||
persistence-eclipselink | ✓ | ✓ | ||||
persistence-hibernate | ✓ | ✓ | ||||
querydsl | ✅ | |||||
querydsl-5 | ✓ | |||||
querydsl-6 | ✓ |
e.g.
## Java
$ mvn clean test
## Jakarta Persistence + EclipseLink
$ mvn -Pfailsafe,persistence,persistence-eclipselink clean verify
## Jakarta Persistence + Hibernate + Querydsl
$ mvn -Pfailsafe,persistence,persistence-hibernate,querydsl,querydsl-5 clean verify
## Spring Data JPA
$ mvn -Pfailsafe,application,application-spring-boot clean verify
$ sh ./.docker.build.sh
We don't have to repeat this job unless the Dockerfile
changed.
$ sh ./.docker.run.sh
We'd better to wait a few seconds for the MySQL engine is fully up and running.
$ sh ./.docker.connect.sh
$ sh ./.docker.stop.sh
- Jakarta Annotations 3.0 Specification Document (PDF)
- Jakarta Annotations 3.0 Specification Document (HTML)
- Jakarta Annotations 3.0 Javadoc
- EclipseLink JPA Extensions Reference
- Bug 328730 - Query.setMaxResults(0) returns unexpected results
- Using Weaving
- Apidocs
- Querydsl Reference Guide
- Jakarta Web Profile 10 Specification Document
- [Jakarta Web Profile 10 Javadoc](Jakarta Web Profile 10 Specification Document)
- Jakarta EE 10 Compatible Implementations