class A{
private List<B> bs;
...
}
class B{
private Long id;
private String name;
...
}
And I would like to have this:
class A{
private Map<String,B> bs;
...
}
class B{
private Long id;
private String name;
private A a;
...
}
I don’t know if it’s clear what I would like to do, but it is as simple as matching the one-to-many relationship with the card with the name B as the card key.
Thanks in advance, Neuquino
source
share