Guest User

Untitled

a guest
Nov 2nd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. public class HibernateUtil {
  2. private static final SessionFactory sessionFactory;
  3. static {
  4. try {
  5. System.out.println("Фабрика создана");
  6. sessionFactory = new Configuration()
  7. .configure("hibernate.cfg.xml")
  8. .addAnnotatedClass(ProfField.class)
  9. .addAnnotatedClass(WorkType.class)
  10. .buildSessionFactory();
  11. } catch (HibernateException ex) {
  12. System.err.println("Initial SessionFactory creation failed." + ex);
  13. throw new ExceptionInInitializerError(ex);
  14. }
  15. }
  16.  
  17. public static SessionFactory getSessionFactory() {
  18. return sessionFactory;
  19. }
  20. }
  21.  
  22. Info: Фабрика создана
  23. Info: HHH000412: Hibernate Core {5.3.7.Final}
  24. Info: HHH000206: hibernate.properties not found
  25. WARN: HHH90000012: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/hibernate-configuration. Use namespace http://www.hibernate.org/dtd/hibernate-configuration instead. Support for obsolete DTD/XSD namespaces may be removed at any time.
  26. Info: HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
  27. WARN: HHH10001002: Using Hibernate built-in connection pool (not for production use!)
  28. Info: HHH10001005: using driver [com.mysql.cj.jdbc.Driver] at URL [jdbc:mysql://localhost:3306/chessman_work?useSSL=FALSE&zeroDateTimeBehavior=CONVERT_TO_NULL&serverTimezone=UTC]
  29. Info: HHH10001001: Connection properties: {user=root, password=****}
  30. Info: HHH10001003: Autocommit mode: false
  31. Info: HHH000115: Hibernate connection pool size: 30 (min=1)
  32. Info: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
  33. Info: HHH10005002: No explicit CDI BeanManager reference was passed to Hibernate, but CDI is available on the Hibernate ClassLoader.
  34. Info: HHH000397: Using ASTQueryTranslatorFactory
  35. Info: Hibernate: select proffield0_.id_prof_field as id_prof_1_0_, proffield0_.prof_field as prof_fie2_0_ from prof_fields proffield0_
  36. Info: Hibernate: select proffield0_.id_prof_field as id_prof_1_0_, proffield0_.prof_field as prof_fie2_0_ from prof_fields proffield0_
  37. Info: Hibernate: select proffield0_.id_prof_field as id_prof_1_0_, proffield0_.prof_field as prof_fie2_0_ from prof_fields proffield0_
  38. Info: Hibernate: select proffield0_.id_prof_field as id_prof_1_0_, proffield0_.prof_field as prof_fie2_0_ from prof_fields proffield0_
  39. Info: Hibernate: select proffield0_.id_prof_field as id_prof_1_0_, proffield0_.prof_field as prof_fie2_0_ from prof_fields proffield0_
  40. Info: Hibernate: select proffield0_.id_prof_field as id_prof_1_0_, proffield0_.prof_field as prof_fie2_0_ from prof_fields proffield0_
  41. Warning: RAR5035:Unexpected exception while destroying resource from pool MySQLPool. Exception message: This web container has not yet been started
  42. Warning: RAR5035:Unexpected exception while destroying resource from pool MySQLPool. Exception message: This web container has not yet been started
  43. Warning: RAR5035:Unexpected exception while destroying resource from pool MySQLPool. Exception message: This web container has not yet been started
  44. Warning: RAR5035:Unexpected exception while destroying resource from pool MySQLPool. Exception message: This web container has not yet been started
  45. Warning: RAR5035:Unexpected exception while destroying resource from pool MySQLPool. Exception message: This web container has not yet been started
  46. Warning: RAR5035:Unexpected exception while destroying resource from pool MySQLPool. Exception message: This web container has not yet been started
  47. Warning: RAR5035:Unexpected exception while destroying resource from pool MySQLPool. Exception message: This web container has not yet been started
  48. Warning: RAR5035:Unexpected exception while destroying resource from pool MySQLPool. Exception message: This web container has not yet been started
  49. Warning: RAR5035:Unexpected exception while destroying resource from pool MySQLPool. Exception message: This web container has not yet been started
Add Comment
Please, Sign In to add comment