openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From llchen <llc...@sympatico.ca>
Subject Re: JPA genereates non-exist id column in the select statement
Date Wed, 14 Jul 2010 17:36:53 GMT

I gave up the OneToMany attempt due to the secondary entity does not have an
Id field. I replaced it with direct JPQL to retrieve the related collection,
thought I have to explicitly list all the fields in the select statement,
otherwise the id field will be added into the SQL select statement as well.

Thanks for your suggestions.

Lule
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/JPA-genereates-non-exist-id-column-in-the-select-statement-tp5282960p5293877.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message