Fetch data by id AND String from single database
<p>I am totally new to Hibernate, Spring and postgres database world. There may be difference in "terms" using to describe.</p>

<p>So issue is, i want to fetch a data where it matches given "id" AND "string" using hibernate, JPA annotations in spring boot.</p>

<p>I know basic like <code>repository.findOne(id)</code> but i am not aware of how to get data with two parameters.</p>

<p>I guess i need something like, i am not sure as i am new to db world</p>

<pre><code>  SELECT * 
  FROM student 
  WHERE type='commerce' 
  AND id='1'" 
</code></pre>

<p>I thank you in advance and tutorials to study further is most welcome.</p>