What is bootstrapping?

“Bootstrapping” comes from the term “pulling yourself up by your own bootstraps.” That much you can get from Wikipedia. In computing, a bootstrap loader is the first piece of code that runs when a machine starts, and is responsible for loading the rest of the operating system. In modern computers it’s stored in ROM, but … Read more

Is the buildSessionFactory() Configuration method deprecated in Hibernate?

Yes it is deprecated. Replace your SessionFactory with the following: In Hibernate 4.0, 4.1, 4.2 private static SessionFactory sessionFactory; private static ServiceRegistry serviceRegistry; public static SessionFactory createSessionFactory() { Configuration configuration = new Configuration(); configuration.configure(); ServiceRegistry serviceRegistry = new ServiceRegistryBuilder().applySettings( configuration.getProperties()). buildServiceRegistry(); sessionFactory = configuration.buildSessionFactory(serviceRegistry); return sessionFactory; } UPDATE: In Hibernate 4.3 ServiceRegistryBuilder is deprecated. Use … Read more