Advertisement
Guest User

Untitled

a guest
Sep 10th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. try{
  2.             Configuration configuration = new Configuration();
  3.             configuration.configure();
  4.             registry = new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry();
  5.             factory = configuration.buildSessionFactory(registry);
  6.         }catch (Throwable e){
  7.             System.err.println("@@ Initialization failed @@ " + e);
  8.             throw new ExceptionInInitializerError(e);
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement