Jakarta EE
The family of Java enterprise specifications, run by the Eclipse Foundation, that defines standard APIs such as Persistence, Validation and Annotations.
In more detail
The specifications used to live under the javax package names and moved to jakarta, which is why Spring Boot 3 code imports jakarta.persistence and jakarta.validation. Libraries such as Hibernate implement them.
Example
import jakarta.persistence.Entity;Related terms
- JPA — The Jakarta standard for mapping Java objects to relational database tables and managing them, implemented by libraries such as Hibernate.
- Jakarta Validation — The Jakarta standard for declaring input rules as annotations on fields, such as @NotBlank and @Positive, and checking them automatically.
- @PostConstruct — An annotation marking a bean method to run once, after dependency injection and before the bean is used.
Taught in
- The Spring Bean Lifecycle — Modern Java: Virtual Threads & High-Throughput Services
- Validation — Modern Java: Virtual Threads & High-Throughput Services
- Persistence With JPA And Hibernate — Modern Java: Virtual Threads & High-Throughput Services