A Red Hat customer is running EAP7 that has {quote} Hibernate 5.0.x and at the beginning "2.8.12. Custom collection types" chapter documentation it is introducing confusion and misunderstanding, as the custom collection types is introduced after hibernate 5.2.x release.
"Hibernate uses its own collection implementations which are enriched with lazy-loading, caching or state change detection semantics. For this reason, persistent collections must be declared as an interface type. The actual interface might be java.util.Collection, java.util.List, java.util.Set, java.util.Map, java.util.SortedSet, java.util.SortedMap or even other object types (meaning you will have to write an implementation of org.hibernate.usertype.UserCollectionType). " {quote}
[Hibernate 5.2 User Guide section 2.8|http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#collections]
{quote}The reason why the Queue interface is not used for the entity attribute is because Hibernate only allows the following types:
java.util.List
java.util.Set
java.util.Map
java.util.SortedSet
java.util.SortedMap {quote} Example 192. Custom collection mapping example
[Hibernate 5.2 User Guide section 2.8.12|http://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#collections-custom] |
|