users@jpa-spec.java.net

[jpa-spec users] [jsr338-experts] Re: Uniqueness of names of NamedQuery/StoredProcedure

From: Linda DeMichiel <linda.demichiel_at_oracle.com>
Date: Wed, 01 May 2013 14:49:54 -0700

On 5/1/2013 1:42 PM, Werner Keil wrote:
> Is JPA still subject to change after the Final Draft?
>

Certainly! But that would be in an MR or JPA 2.2 :-)


> Werner
>
> On Wed, May 1, 2013 at 10:09 PM, Pinaki Poddar <ppoddar_at_us.ibm.com <mailto:ppoddar_at_us.ibm.com>> wrote:
>
> The spec API uses name as the identifying moniker for named queries and stored procedures as in
> *public*<T> TypedQuery<T> createNamedQuery(String name, Class<T> resultClass);
> or
> *public* StoredProcedureQuery createNamedStoredProcedureQuery(String name);
>
> While the name of a @NamedQuery is scoped within a persistence unit (Section 3.10.14, pp 150), does this scope also
> include the named stored procedures?
>
> For example, can we define a NamedQuery and a StoredProedure with the same name?
>
> Regards --
>
> Pinaki Poddar
> Chair, Apache OpenJPA Project http://openjpa.apache.org/
> JPA Expert Group Member
> Application & Integration Middleware
>
>
>