title: hibernate jpa suitable annotaion
body: <p>let's suppose that i have two entities A and B</p>
  
  <p>entity A:</p>
  
  <pre><code>  @Entity
      @Table(name="A")
  
      public class A  implements Serializable {
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      @Column(name="idA")
      private int idA;
      @OneToMany(fetch=FetchType.EAGER)
      private List&lt;B&gt; listofB ;
  
  ///GETTERS AND SETTERS
  }
  </code></pre>
  
  <p>entity B:</p>
  
  <pre><code>  @Entity
      @Table(name="B")
  
      public class B implements Serializable {
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      @Column(name="idB")
      private int idB;
  
  
  ///GETTERS AND SETTERS
  }
  </code></pre>
  
  <p>Now when i run this code , hibernate will automatically generate a table in the database. The table's name is A_B and it contains the id of A and the id of B, </p>
  
  <pre><code>*********************
  * Table    A_B      *
  *********************
  *A_idA * listofB_idB*
  *      *            * 
  *********************
  </code></pre>
  
  <p>But what i want to do actually is to focre hibernate to generate a table with a numeric  value in every line , and i want it to be considered in every new line , i mean i want a table like this one</p>
  
  <pre><code>    *****************************
      *        Table    A_B       *
      *****************************
      *A_idA * listofB_idB* Value *
      *      *            *       *
      ***************************** 
  </code></pre>
  
  <p>how should i proceed ???</p>