title: TypeORM: Many-to-many custom column names
body: <p>Given the following two <strong>TypeORM</strong> entities that have a <strong>@ManyToMany</strong> relationship:</p>
  
  <pre class="lang-js prettyprint-override"><code>@Entity({ name: 'products' })
  export class ProductEntity {
    @PrimaryColumn()
    id: number;
  
    @Column()
    name: string;
  
    @ManyToMany(type =&gt; CategoryEntity, { eager: true })
    @JoinTable({ name: 'products_categories' })
    categories: CategoryEntity[];
  }
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>@Entity({ name: 'categories' })
  export class CategoryEntity {
    @PrimaryColumn({ length: 40 })
    code: string;
  }
  </code></pre>
  
  <p>As a result I get created a table called <code>"products_categories"</code> with the following column names:</p>
  
  <ul>
  <li><code>productsId</code> </li>
  <li><code>categoriesCode</code></li>
  </ul>
  
  <p>Is there a way of giving these two columns custom names? I would like to rename them as follows:</p>
  
  <ul>
  <li><code>productsId</code> -> <code>productId</code></li>
  <li><code>categoriesCode</code> -> <code>categoryCode</code></li>
  </ul>