title: Spring get all @Entity classes
body: <p>Is there a way to get all @Entity classes in Spring?
  I can't seem to find any solution.
  Thanks.</p>
  
  <p>answer:</p>
  
  <pre><code>&lt;dependency&gt;
     &lt;groupId&gt;org.reflections&lt;/groupId&gt;
     &lt;artifactId&gt;reflections&lt;/artifactId&gt;
     &lt;version&gt;0.9.5&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>will do this easily ;)</p>