Is this issue really fixed in Hibernate 5.1.0 final? It does not function, when I attempted using that version of Hibernate in WildFly 10.0.0 final along with Weld 2.3.2 final.
http://stackoverflow.com/q/33891368/1391249