In Hibernate, you can define the type of a custom collection by setting the "collection type" attribute in the xibernate xml mapping file.
I was wondering if there is an equivalent to annotation.
PS: I tried using @Type, but hibernate complains:
"Illegal attempt to map a non collection as a @OneToMany, @ManyToMany" ...
So, I assume that @Type is for regular properties only.
Thanks!
source share