Process finished with exit code 130 (interrupted by signal 2: SIGINT)
Session session = sessionFactory.openSession();
Transaction tx;
try {
tx = session.beginTransaction();
Role hr = new Role();
hr.setRole("hr");
session.save(hr);
tx.commit();
}
catch (Exception e) {
e.printStackTrace();
System.out.println(e.getMessage());
tx.rollback();
}
finally {
session.close();
HibernateUtil.shutdown();
System.out.println("after");
}