[hibernate-dev] UserCollectionType mapping for Ceylon

Vlad Mihalcea mihalcea.vlad at gmail.com
Sun Nov 22 01:57:57 EST 2015


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 at gmail.com> wrote:

> On Sun, Nov 22, 2015 at 1:56 AM, Gavin King <gavin.king at 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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list