Hello.
I have two classes, which references another class in an One2Many-relationship
Code:
public class A {
private Object id;
List<X> xes;
}
public class B {
private Object id;
List<X> xes;
}
public class X {
private Object id;
private String name;
}
I map this model with three entity tables (for A, B and X) and two join tables A2X and B2X.
What I want to do now, is accessing the class X via a map:
Code:
public class A {
private Object id;
Map<String, X> xes;
}
public class B {
private Object id;
Map<String, X> xes;
}
where the key of the map is the name of the X object.
How can I do this?