I have a problem with mapping. Maybe some one can help me.
Code:
@Entity
@Table(name="A")
Public class A{
private List<ArrayList<ArrayList<B>>> bs =
new ArrayList<ArrayList<ArrayList<B>>>();
@OneToMany
public List<ArrayList<ArrayList<B>>> getBs(){
return bs;
}
public void setBs(List<ArrayList<ArrayList<B>>> bs){
this.bs = bs;
}
}
Code:
@Entity
@Table(name="B")
Public class B{
private String name;
public String getName(){
return this.name;
}
public void setName(String name){
this.name = name;
}
}
Here is the Exception
Code:
State: FAILED
Reason: org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class: A.bs[java.util.ArrayList]
can Hibernate not support the datastructure List<ArrayList<ArrayList<B>>>?