Re: [hibernate-dev] Embedded value not null when it includes an @ElementCollection

2014-09-18 Thread Davide D'Alto
Thanks, Davide On Thu, Sep 18, 2014 at 3:15 PM, Steve Ebersole wrote: > I have not played with case specifically, but it makes sense. ORM tries > hard to never return a null collection reference. > > On Wed, Sep 17, 2014 at 10:31 AM, Davide D'Alto > wrote: > >> Hi, >> I've created a test for

Re: [hibernate-dev] Embedded value not null when it includes an @ElementCollection

2014-09-18 Thread Steve Ebersole
I have not played with case specifically, but it makes sense. ORM tries hard to never return a null collection reference. On Wed, Sep 17, 2014 at 10:31 AM, Davide D'Alto wrote: > Hi, > I've created a test for OGM where we store an @Embeddable containing a list > annotated with @ElementCollectio

[hibernate-dev] Embedded value not null when it includes an @ElementCollection

2014-09-17 Thread Davide D'Alto
Hi, I've created a test for OGM where we store an @Embeddable containing a list annotated with @ElementCollection [1]: This is the embedded: @Embeddable public class PhoneNumber { private String main; @ElementCollection private List alternatives; ... } In the test [2] I first sav

[hibernate-dev] Embedded value not null when it includes an @ElementCollection

2014-09-17 Thread Davide D'Alto
Hi, I've created a test for OGM where we store an @Embeddable containing a list annotated with @ElementCollection [1]: This is the embedded: @Embeddable public class PhoneNumber { private String main; @ElementCollection private List alternatives; ... } In the test [2] I first sav