title: jpa read only active records
body: <p>I have a set of tables where I maintain an active_ind column and have a jpa entity mapped to it.</p>
  
  <p>When I write queries I like to keep things simple and just do:
  select d from Doctor where ...</p>
  
  <p>Instead of:
  select d from Doctor where d.activeInd='A' and ...</p>
  
  <p>Is it possible to achieve the "where d.activeInd='A'" with annotations or do I always have to put it in the where clause?
  It's kind of ok for a single entity but when I join with couple tables, it can become cumbersome.</p>