this is really strange i use extensive the find method and i never seen that problem.
What about if you use use criteria builder or jpql for replace the find method and see what happen? 2013/3/6 Riccardo <[email protected]> > If I run the query, I get exactly the result I expect. If I use the > find-Method the properties of the inventory are all filled with the right > values, also the user-object has the right id, but the other properties of > the user-object are just NULL. > > If I access the other properties of the user via a getter a new SELECT is > executed by OpenJPA do load the values. So, everything works, but the > additional SELECT is to much in my opinion, since this leads to 1+N > selects, > which is not necessary. > > > > -- > View this message in context: > http://openjpa.208410.n2.nabble.com/Problem-with-Criteria-API-and-fetch-properties-of-related-entities-are-NULL-tp7582995p7583033.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. > -- ------------------------------------------------------------------- *SCJA. José Luis Cetina* -------------------------------------------------------------------
