title: Fortify Scan Issue Fix- Unreleased Resource: Database
body: <p>How can i avoid this issue , for the below line  </p>
  
  <pre><code>Query query = getSession().createQuery("my sql query");
  </code></pre>
  
  <p>or </p>
  
  <pre><code>Session session = getSession();
  SQLQuery query = session.createSQLQuery("");
  </code></pre>
  
  <p>There are a couple of queries in my DAO implementation and I cannot close the session after every query execution(If I do will not create connection pool bottleneck or overuse of memory?).<br>
  But I need to fix this issue or provide an appropriate reason to make this a positive error.</p>
  
  <p>Please guide</p>