persistence@glassfish.java.net

Dynamically creating named queries

From: Farrukh S. Najmi <farrukh_at_wellfleetsoftware.com>
Date: Mon, 18 Jun 2007 10:33:56 -0400

Hello,

In my application I need to dynamically create named queries based on
configuration data for my application.
I cannot statically define NamedQuery annotation in my code but instead
need to create a NamedQuery through code.

I assume this is possible? Is so, can someone please suggest how to do
this. Thanks you for your help.

-- 
Regards,
Farrukh
Web: http://www.wellfleetsoftware.com