Closing as solved by XWIKI-19708: no XWiki pom references the Jakarta Persistence API, it only reaches the WAR as a transitive dependency of hibernate-core, and jakarta.persistence-api 3.2 will come with the upgrade to Hibernate 7, so there is no separate work to do.
This is also not tied to the Jakarta EE version (XWIKI-22776): the supported Servlet containers (Tomcat, Jetty) don't provide Jakarta Persistence, so its version is a choice of the WAR.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.