title: Cant connect to postgreSQL with Hibernate(Eclipse)
body: <p>What i do wrong? After running main class i have view in console like in current screenshot below and the console continues to work and nothing happens.</p>
  
  <p>hibernate.cfg.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!DOCTYPE hibernate-configuration PUBLIC
  "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
  "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"&gt;
  &lt;hibernate-configuration&gt;
    &lt;session-factory&gt;
      &lt;property name="connection.driver_class"&gt;org.postgresql.Driver&lt;/property&gt;
      &lt;property name="connection.url"&gt;jdbc:postgresql://localhost:5432/Gillie_PL&lt;/property&gt;
      &lt;property name="connection.username"&gt;postgres&lt;/property&gt;
      &lt;property name="connection.password"&gt;postgres&lt;/property&gt;
      &lt;property name="dialect"&gt;org.hibernate.dialect.PostgreSQLDialect&lt;/property&gt;
      &lt;property name="show_sql"&gt;true&lt;/property&gt;
      &lt;property name="hbm2ddl.auto"&gt;update&lt;/property&gt;
     &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;
  </code></pre>
  
  <p>hibernateUtil.class:</p>
  
  <pre><code>package hibernateConn;
  import org.hibernate.SessionFactory;
  import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
  import org.hibernate.cfg.Configuration;
  public class HibernateUtil {
     private static SessionFactory sessionFactory = null;
     static {
       Configuration cfg =
        new Configuration().configure("/hibernateConn/hibernate.cfg.xml");
        StandardServiceRegistryBuilder builder =
        new StandardServiceRegistryBuilder()
        .applySettings(cfg.getProperties());
        sessionFactory = cfg.buildSessionFactory(builder.build());
     }
  
   public static SessionFactory getSessionFactory(){
     return sessionFactory;
   }
  </code></pre>
  
  <p>}</p>
  
  <p>Main.Class:</p>
  
  <pre><code>package hibernateConn;
  import org.hibernate.SessionFactory;
  public class Main {
    public static void main(String[] args) {
      SessionFactory sessionFactory = HibernateUtil.getSessionFactory();
     }
  }
  </code></pre>
  
  <p>After I run Main.class I have in console:</p>
  
  <p><a href="https://i.stack.imgur.com/ZIshd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZIshd.png" alt="enter image description here"></a></p>
  
  <p>And that's all. Nothing more, the program continues to work and nothing happens, as if recursion occurs ... Maybe I did not correctly specify the settings in xml?</p>