support hibbernate4