title: Parameter 0 of constructor in com.dao.impl.EnvironmentPropertyRepositoryImpl required a bean of type 'java.lang.Class' that could not be found
body: <p>I have and Entity <code>EnvironmentProperty</code> which has a composite primary Key <code>EnvironmentPropertyId</code> (which I have given using <code>@EmbeddedId</code>). I have written their Dao Implementation (code is below). But when I am trying to run the code, it gives error : </p>
  
  <pre><code>Parameter 0 of constructor in com.visa.dp.ags.probe.api.server.dao.impl.EnvironmentPropertyRepositoryImpl required a bean of type 'java.lang.Class' that could not be found.
  </code></pre>
  
  <p>Following is the code of Dao Interface </p>
  
  <pre><code>public interface EnvironmentPropertyRepository extends JpaRepository&lt;EnvironmentProperty, EnvironmentPropertyId&gt; {}
  </code></pre>
  
  <p>Following is the code of the Dao Implementation.</p>
  
  <pre><code>@Repository("environmentPropertyRepository")
  public class EnvironmentPropertyRepositoryImpl extends SimpleJpaRepository&lt;EnvironmentProperty, EnvironmentPropertyId&gt; implements EnvironmentPropertyRepository {
  
   public EnvironmentPropertyRepositoryImpl(Class&lt;EnvironmentProperty&gt; domainClass, EntityManager em) {
      super(domainClass, em);
   }
  }
  </code></pre>
  
  <p>It is indicationg error at 1st parameter of the constructer which is <code>domainClass</code>  </p>
  
  <p>I am not able to figure out what I am doing wrong. Any help is appreciated.</p>