In the Getting started code's, there are using a deprecated method: buildSessionFactory() (For example in AnnotationsIllustrationTest or NativeApiIllustrationTest) - Maybe it needs to review it.