Is there a Many to Many Collection in Java using Generics (Domain Model, not Persistence Layer)?

前端 未结 2 1905
耶瑟儿~
耶瑟儿~ 2021-02-05 08:13

I seem to be using the wrong search terms for this in Google...

I have written a Generic Class for Many-To-Many Associations, but I\'m guessing this has already been don

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-05 08:50

    Looks like Apache Commons Multimap might be useful.

    EDIT: except it's one-to-many, not many-to-many. However, it still might be handy to use instead of your Map> and Map>, or as a reference.

提交回复
热议问题