java - Make hibernate collections a HashMap instead of List or Set -
is there way create hibernate onetomany collections map of id entity, rather list or set?
take on @mapkey jpa anotation... can't test right now, it's should like
@onetomany(mappedby="user") @mapkey private map<integer, order> orders;
java hibernate
No comments:
Post a Comment