Thanks @Bastien You workaround works fine.
However it looks that since Hibernate 5.3.0 inclusion of javax.annotation-api is longer not required - dependency was removed in HHH-12378 Closed .