I think that only the Java Collection types work with the JPA @OneToMany
associations, as it's described int his issue:
https://hibernate.atlassian.net/browse/HHH-4417
So, even when specifying a @CollectionType, the return type must be a
List/Set:
@OneToMany(...)
@CollectionType( type="MyCustomListType" )public List getOrders()
Vlad
On Sun, Nov 22, 2015 at 2:57 AM, Gavin King <gavin.king(a)gmail.com> wrote:
On Sun, Nov 22, 2015 at 1:56 AM, Gavin King
<gavin.king(a)gmail.com> wrote:
> Of course this is surely the ideal way to handle this, but bear with
> me for a sec because I would like to know why what I tried didn't
> work.
I mean "surely *not* the ideal way".
--
Gavin King
gavin(a)ceylon-lang.org
http://profiles.google.com/gavin.king
http://ceylon-lang.org
http://hibernate.org
http://seamframework.org
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev