title: How to resolve don't flush the Session after an exception occurs
body: <p>This is my code</p>
  
  <pre><code>try {
    if(request.currentOrganization) {
      Test test = new Test()
      test.organization = request.currentOrganization
      test.save()
    }
  } catch(Exception ignoreMe) {
       //println("Unable to update notification table : " + ignoreMe.message)
  }
  </code></pre>
  
  <p>And there is no need for this expection here, looking so strange, some of other answer for this topic didn't helped me, can someone help me to sort out this</p>
  
  <p><strong>Exception</strong></p>
  
  <pre><code>org.hibernate.AssertionFailure: null id in com.rwi.base.test entry (don't flush the Session after an exception occurs
  </code></pre>