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.
