Hi,
you can just use the hibernate4 package. The code in question is the JtaPlatform you need to configure and afaik and imho there is no difference from 4 to 5 - same interface. So the implementation from Hibernate 4 package works with Hibernate 5 too.
kind regards
Torsten
Torsten Krah
Wednesday, October 07, 2015