I have a table named Samples in my DB,and it has a column named baseline which is a boolean variable. I wanted to search among the rows which have baseline set as 1, so I created a view in the DB (MySQL). Now, instead of querying the Samples table, I want to query this view (names as Baselines).
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 Baselines for this?