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.
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
tojakarta.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: