I got a problem with hibernate and mapping multiple objects of the same type, maybe im just stupid. 

I have an Product

```
@Entity
@Table(name = "product")
public class Product {

  @Id
  private int id;

  @ManyToMany(cascade = CascadeType.ALL)
  private List<LanguageBasedText> name;

  @ManyToMany(cascade = CascadeType.ALL)
  private List<LanguageBasedText> longDesc;

 (...)
}

```

and the Language Based Text

```
@Entity
@Table(name = "languageBasedText")
public class LanguageBasedText {

  @EmbeddedId
  private LanguageTextEmbeddedKey embeddedID;

  @Column(name = "text")
  private String text;

}

```

with an embedded Key

```
@Embeddable
public class LanguageTextEmbeddedKey implements Serializable {

  @Column(name = "productID")
  private int productID;
  @Column(name = "lang")
  private String lang;
  @Column(name = "type")
  private String type; 
  //i get the type from an other source and it is the information where 
  //the text goes (name or longDesc or 100 other posibil multi 
  //language text fields)
}

```

the question ist: How do i get hibernate to map this right

i want a table like

TEXT

product\_id | lang | type | text 

and

PRODUCT

product\_id | some other stuff |