title: Error: hibernate.properties not found
body: <p>I receive an error. I'll be glad if you help me. I got the following error message while studying hibernate. I also using PostgreSQL database. I did it by following <a href="https://www.youtube.com/watch?v=N2F1zCAf_NU&amp;index=3&amp;list=PL4AFF701184976B25" rel="nofollow noreferrer">that video</a>.</p>
  
  <p><strong>Error message:</strong> </p>
  
  <pre><code>Exception in thread "main" org.hibernate.internal.util.config.ConfigurationException: Unable to perform unmarshalling at line number 0 and column 0 in RESOURCE hibernate.cfg.xml. Message: null
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/XK9i0.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XK9i0.jpg" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>HibernateTest.java (main class)</p>
  </blockquote>
  
  <pre><code>package hibernate1;
  
  import org.hibernate.Session;
  import org.hibernate.SessionFactory;
  import org.hibernate.cfg.Configuration;
  
  public class HibernateTest {
  
      public static void main(String[] args) {
  
          UserDetails user = new UserDetails();
          user.setUserId(1);
          user.setUserName("oguzhancevik");
  
          SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
          Session session = sessionFactory.openSession();
          session.beginTransaction();
          session.save(user);
          session.getTransaction().commit();
  
      }
  
  }
  </code></pre>
  
  <blockquote>
    <p>UserDetails.Java
    <a href="https://i.stack.imgur.com/zMZpG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zMZpG.jpg" alt="enter image description here"></a></p>
    
    <p>hibernate.cfg.xml
    <a href="https://i.stack.imgur.com/E2E8o.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E2E8o.jpg" alt="enter image description here"></a></p>
  </blockquote>