title: When is the exception javax.persistence.PersistenceException thrown
body: <p>I was learning hibernate, and had encountered the exception - javax.persistence.PersistenceException
  But I did not understand the exact reason for this.
  In which scenarios is this exception thrown?</p>