I am working with final hibernate version (4.3.0) & trying to create sessionFactory()
instance, but it seems that everything is deprecated.
I try this:
And it shows, that cannot find a symbol like "buildServiceRegistry()"
. Also ServiceRegistryBuilder()
is Deprecated. So, frankly how to instantiate it?
CODE HERE: http://pastebin.com/EkqfRxkB
and then we can use this in other file / class easily like this :