openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C N Davies" <>
Subject Query Mayhem
Date Fri, 26 Feb 2010 13:28:03 GMT


I am using Open JPA 2.0 Beta and I have some JPQL that seems to be confusing
the parser. Here is my query:


SELECT ct.assets.queue.uniqueid from Contract ct where ct.uniqueid =


Here is my parse error:



"Error message: No field named "queue" in class "class



If you look at my query there is no reference to "queue" in the Contract
class,  the dotted notation shows I am looking for the queue in the Contract
entity's "Assets" vector


Here is the Contract entity snippet:


public class Contract extends MasterObject {




            /** The assets. */


            private List<Asset> assets;








Here is the Asset entity:


public class Asset extends CoreObject {




/** The queue. */


            private Queue queue;






So I believe my JPQL is correct and that OpenJPA is confused. Or maybe I am


Thanks for any pointers!




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