title: Are you supposed to have one repository per table in JPA?
body: <p>Are you supposed to have one repository per table in JPA? If not, how do you resolve the generics in the repository database?</p>
  
  <p>For example, below is a <code>StoreRepository</code>. It handles <em>CRUD</em> operations on the <code>Store</code> object. If I wanted the repository to save a <code>StoreEvent</code> object as well, how would I go about changing the interface below to accommodate both objects?</p>
  
  <pre><code>@Repository
  public interface StoreRepository extends JpaRepository&lt;Store, String&gt; {
      public Store findByGuid(String guid);
  }
  </code></pre>