Review the documentation and look for anything that needs to be changed/updated
Add a NOTE to the examples for using the EntityManagerFactory and EntityManager interfaces saying that they now implement AutoClosable, so they can be used with try-with-resources blocks (without explicitly closing them).
Current tutorial chapters for Persistence: https://jakartaee.github.io/jakartaee-documentation/jakartaee-tutorial/current/persist/persistence-intro/persistence-intro.html
For background, here are the changes for Servlet 6.0:
Release notes: https://jakarta.ee/specifications/persistence/3.1/
Please do the following:
AutoClosable
, so they can be used with try-with-resources blocks (without explicitly closing them).You can find the documentation here:
src/main/antora/modules/persist/pages