Hello Patrick,

On 7/25/07, Patrick Linskey <[EMAIL PROTECTED]> wrote:

Interesting.... the enum could also be the problem. What happens if
you create a new constructor that doesn't have the enum param, and run
the same query without the enum  data?


Yes! It was enum causing the problem. Query is working when I removed enum
parameter.

Can you describe what data you're trying to exclude from the query? I
understand your desire to avoid tying yourself to a particular
vendor's extensions, but in my opinion the benefits of living within
the regular JPA world from a lifecycle standpoint outweigh the costs
of living outside the JPA world for the query optimizations.


Thanks and yes, we hardly switch to another JPA implementation, so it is
better to make use of full features to optimize the application for better
performance.

Note that from an API standpoint, you can use FetchPlans either via
query hints (i.e., without importing OpenJPA classes) or via
OpenJPA-specific APIs. This also means that you can externalize the
hints into named query definitions as well.


Ok. I'll give it a try today.

Thanks and Regards,
Prashant

Reply via email to