title: Default value for a particular value retrieved from Hibernate
body: <p>Employee table have id, cmpId, name, designation, type</p>
  <pre class="lang-java prettyprint-override"><code>@Query(&quot;select emp from Employee emp where emp.cmpId= :cmpId&quot;)
  List&lt;Employee&gt; findById(@Param(&quot;cmpId&quot;) long cmpId); 
  </code></pre>
  <p>here it will receive all the data from the employee table.</p>
  <p>Now I want to retrieve the data id,name and designation as from the DB and for the type it should be always &quot;PERMANENT&quot; even if the value in the DB is any.</p>
  <p><strong>How to do this only with the query ?</strong></p>
  <p><strong>NOTE:</strong> I cannot use the POJO getter to set the value as default value.</p>