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.nim...@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* -------------------------------------------------------------------