title: Use database Views with Hibernate
body: <p>I have a table named <code>Samples</code> in my DB,and it has a column named <code>baseline</code> which is a boolean variable. I wanted to search among the rows which have <code>baseline</code> set as <code>1</code>, so I created a view in the DB (MySQL). Now, instead of querying the <code>Samples</code> table, I want to query this view (names as <code>Baselines</code>). </p>
  
  <p>Do I need to add a declaration for this view in the hibernate cfg file? Also, do I need to create another Java class named <code>Baselines</code> for this?</p>