Hi Jeff, Yes you are correct. I developed a simple test case for this and I see that the SubclassFetchMode is not helping resolve the issue.
I did more debugging in the openJPA code and see that currently in case of subclasses the queries for subclasses will be executed and I see no way to stop them. ( just my personal observation, so please do not completely count on this statement.) There is a way to restrict the fields that you want to pull from these subqueries though. We can do that using fetchgroup technique. Can you please give more details on the reason for your initial question ? Sorry my previous suggestion was not helpful. I recommended that with what ever I read in the documentation. http://openjpa.apache.org/builds/latest/docs/javadoc/org/apache/openjpa/jdbc/conf/JDBCConfiguration.html#getSubclassFetchMode() "Specifies the default subclass fetch mode to use. Defaults to join unless the query is by-oid. Possible values are: * none: Only select base class data." Regards, Ravi. -- View this message in context: http://n2.nabble.com/How-to-disable-jpql-Polymorphic-Queries-tp3229800p3253569.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
