jPOS-EE icon indicating copy to clipboard operation
jPOS-EE copied to clipboard

Feature update to hibernate 6 and to jakarta ee

Open aVolpe opened this issue 2 years ago • 1 comments

This is a work in progress, this is too disruptive to be applicable/useful, but I want to make this pr so if in a future we make the jump we don't start from scratch.

This PR bumps the dependency of hibernate from 5 to 6, this is not a minor change because there was a change in package, from javax.persistence to jakarta.persistence (more info).

Hibernate 6 also needs java at least 11.

This package change will also affect the qi and rest modules, jetty should be upgraded to 11.

Progress:

  • [x] minigl: update to hibernate 6
  • [x] minigl: migrate from hibernate criteria to jpa criteria, hibernate criteria was removed
  • [x] minigl: migrate from hql to jpql, some constructs from hql were removed.
  • [x] minigl: all tests pass
  • [ ] minigl: all tests pass with postgres
  • [ ] minigl: all tests pass with mysql
  • [ ] minigl: there are some issues with the journal export, it doesn't work without cache lvl2.
  • [x] dbsupport: update to hibernate 6
  • [ ] dbsupport: update to hibernate-ehcache 6. Currently, there are no stable modules for ehcache for hibernate 6.
  • [ ] rest modules: update to jetty 11
  • [ ] qi/vaadin modules: update to jetty 11
  • [ ] global: re-enable testbed
  • [x] remove dom4j, this library has some problems with java 17 and we can use jdom2 which is already used in jpos.

aVolpe avatar Nov 30 '22 13:11 aVolpe

A change like this deserves the release of 2.2.9 and a move to 2.3.0. We can do it once you're ready with this PR.

ar avatar Nov 30 '22 13:11 ar