how can i give entity name as a variable to a query in spring boot jpa
<pre><code>@Query("select c from :entity c )

BaseEntity findOne( @Param("value") String entity );
</code></pre>

<p>this gives an error saying :-</p>

<blockquote>
  <p>Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException:
  unexpected token: : near line 1, column 15 [select c from :entity c ]
    at
  org.hibernate.hql.internal.ast.QuerySyntaxException.convert(QuerySyntaxException.java:91)
  ~[hibernate-core-4.3.11.Final.jar:4.3.11.Final]</p>
</blockquote>