title: Is there a way to use constants inside Spring Data @Query annotation value?
body: <p>I don't want to hardcode constant values, I would rather specify them through a reference variable.</p>
  
  <p>For example, rather then writing the next query:</p>
  
  <pre><code>@Query(value = "SELECT u FROM UserModel u WHERE u.status = 1")
  </code></pre>
  
  <p>..I would like to extract the hardcoded value '1' and write something like:</p>
  
  <pre><code>@Query(value = "SELECT u FROM UserModel u WHERE u.status = UserModel.STATUS_ACTIVE")  //doesn't compile
  </code></pre>
  
  <p>Is there a way to specify constants like in the second example inside spring-data queries?</p>