title: Hibernate: Mapping entity as list to two or more another entities
body: <pre><code>@Entity
  class Item {
    ...
  }
  
  @Entity
  class Character {
    ...
    @OneToMany
    public List&lt;Item&gt; getItems() {
      ...
    }
  }
  
  @Entity
  class Bank {
    ...
    @OneToMany
    public List&lt;Item&gt; getItems() {
      ...
    }
  }
  </code></pre>
  
  <p>I want to have one table for an Item entities with DTYPE field {Characters,Bank} and ID filed. How can I do such kind of mapping? Any ideas?</p>
  
  <p>Thanks in advance.</p>