Page 1 of 1

Select() in jpa query

Posted: Thu Sep 03, 2015 7:07 am
by NightCapybara
So the book (Pro JPA 2.0) says, that it is illegal to select collections in a form, such as: Select e.creditCards from Customer e;
But ToyFramework works fine with this query.
What's the catch?

Re: Select() in jpa query

Posted: Thu Sep 03, 2015 11:00 am
by admin
It is possible that the JPA provider is not 100% compliant or the book is incorrect.
Did you ask the author of the book you've mentioned?