openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Luis Cetina <maxtorz...@gmail.com>
Subject Re: Problem with Criteria-API and fetch (properties of related entities are NULL)
Date Wed, 06 Mar 2013 16:32:04 GMT
If you use find you have to get all the properties, if you use getReference
you will only get the id IIRC.

Why you dont print you sql inserts to log file and see if the query is what
you expect


2013/3/6 Riccardo <riccardo.nimser@s2000.tu-chemnitz.de>

> Ok, I just found out, that the properties of the owner (user) are also all
> NULL, if I just search an inventory by its primary key via:
>
>     this.manager.find(Inventory.class, someId);
>
> For me this seems not to be normal. Maybe one of the developers can give me
> some feedback to this problem.
>
> Regards
>
> Riccardo
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Problem-with-Criteria-API-and-fetch-properties-of-related-entities-are-NULL-tp7582995p7583024.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>



-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message