This content has been marked as final.
Show 1 reply
-
1. Re: @OneToOne and SELECT (1+n) problem
mars1412 Apr 3, 2008 4:56 AM (in response to lupson)AFAIK all your fancy annotation stuff is useless when you explicitly code your query.
if you would just use em.find(Person.class, Id) your annotation setting should work
but if you hardcode your query, you must explicitly use a fetch statement like:from Person p inner join fetch p.metadata