Bug 240060 - [EclipseLink] Support for EclipseLink NamedStoredProcedureQuery
Summary: [EclipseLink] Support for EclipseLink NamedStoredProcedureQuery
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard: EclipseLink
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-08 14:58 EDT by Karen Butzke CLA
Modified: 2013-03-06 16:20 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2008-07-08 14:58:56 EDT
On the EclipseLink platform we need to add support for the NamedStoredProcedureQuery and NamedStoreProcedureQueries
annotations and the corresponding eclipselink-orm.xml element named-stored-procedure-query. This is supported on Entity and entity-mappings.

http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_%28ELUG%29#Using_EclipseLink_JPA_Extensions_for_Stored_Procedure_Query
Comment 1 Nan Li CLA 2010-12-01 14:49:34 EST
Validation:

1. The name and procedureName attributes are specified. Null and empty value, like @NamedStoredProcedureQuery(name = "", procedureName = "  ") or <named-stored-procedure-query name="  " procedure-name=""/>, should be reported.
2. All the given query names should be unique cross the persistence unit.
3. The query names given in the nested @NamedStoreProcedureQueries annotation should also be verified.
Comment 2 Neil Hauge CLA 2011-07-01 16:26:58 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 3 Karen Butzke CLA 2013-02-21 13:18:45 EST
Now that we have added JPA 2.1 support for named stored procedure queries (bug  392701), I think we should add support for the EclipseLink ones as well.

We now support converting JPA 2.1 NamedStoredProcedureQuery java annotations to xml and also include these queries in the query namespace, thus providing validation for duplicates. So we would want this same support for the EclipseLink ones.

Do you agree with this assessment, Neil? I'll set it to 3.3M6 for now
Comment 4 Karen Butzke CLA 2013-02-25 12:00:59 EST
In EclipseLink 2.5 (maybe 2.4?) several annotation elements on NamedStoredProcedureQuery were deprecated:
-resultSetMapping  (replaced with resultSetMappings, same as JPA 2.1)
-resultClass (replaced with resultClasses, same as JPA 2.1)

StoredProcedureParameter deprecated:
-direction (replaced with mode, same as JPA 2.1)


I don't know if we still want to support the deprecated elements. Doing the conversion from Java to XML we would lose those deprecated settings if we don't add the support in the model.


EclipseLink NamedStoredProcedureQuery settings beyond the JPA 2.1 spec:
-boolean multipleResultSets
-boolean resturnsResultSet
-boolean callByIndex

EclipseLink StoredProcedureParameter settings beyond the JPA 2.1 spec:
-String queryParameter
-boolean optional
-int jdbcType()
-String jdbcTypeName()
Comment 5 Neil Hauge CLA 2013-03-06 16:20:21 EST
It was decided that this was less important now that it was implemented in the 2.1 spec.