title: Hibernate JPA is generating select query everytime when findOne(String id) is called with same parameter value
body: <p>Hibernate findOne(String id) is taking to much time (more than 300ms) in our case. This is not consistent as well. For some request, it is returning the result in less than 100ms.</p>
  
  <p>So we want to improve the performance of findOne where it should not take more than 100ms of time. Since the table has more than 100k records, we have indexing in place for Entities involved in select query. </p>
  
  <p>We are calling this findOne method for each client request. Only the value in where clause will change and not the columns or entities involved in this.</p>
  
  <p><strong>So basically, it would be great if Hibernate could create/generate the select query once and reuse it for all the findOne calls on the repository.</strong></p>
  
  <p>Can someone help me with this?</p>