What collections are valid for javax.persistence.ManyToMany

Research, I found that communication javax.persistence.ManyToManycan be implemented using a different collection. I wonder if all collections java.utilare permissible or if there are restrictions.

Please note that I really use Scala, and I like to use one of the immutable collections. But I think this is out of the question.

+3
source share
1 answer

In the Hibernate documentation, he only says:

Collection, List, Map , -- -- , @OneToMany @ManyToMany . , @ElementCollection. .

: http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html#entity-mapping-association-collections

+3

Source: https://habr.com/ru/post/1793829/


All Articles