title: Create repository when EntityRepository is deprecated typeorm
body: <p>I usually use this code to create a repository:</p>
  <pre class="lang-js prettyprint-override"><code>import { EntityRepository, Repository } from 'typeorm'
  import { User } from './user.entity'
      
  @EntityRepository(User)
  export class UserRepository extends Repository&lt;User&gt; {
    getInactiveUsers(): Promise&lt;User[]&gt; {
      return this.createQueryBuilder()
        .where('isActive = :active', { active: false })
        .getMany()
    }
  }
  </code></pre>
  <p>However, now <code>EntityRepository</code> is deprecated. I found a <a href="https://gist.github.com/anchan828/9e569f076e7bc18daf21c652f7c3d012" rel="nofollow noreferrer">reference</a> but I think it's quite complex. I wonder if there is a simpler way to solve it?</p>