
Originally Posted by
dabder
OK, i read angain the code, you are right.
I thought that it was the same principle as JPA injection, like this :
----
@Entity
public class Window {
@OneToMany(cascade = { CascadeType.REMOVE }, fetch = FetchType.EAGER)
@JoinColumn(name = "window_id")
private Map<String, Preference> preferences = new HashMap<String, Preference>();
-----
Preference is an other entity, i don't have to tell JPA the object type referenced here.
It would be natural to code in a such way with SPring DM. I don't know how hibernate is able to analyse Generics because they are cleared in the byte code.
Do you now more about this?