Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357089 - javax.persistence.Parameter.getPosition() always returns null
Summary: javax.persistence.Parameter.getPosition() always returns null
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P2 blocker (vote)
Target Milestone: ---   Edit
Assignee: Tom Ware CLA
QA Contact:
URL:
Whiteboard: jpa21
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-08 10:13 EDT by Stephen DiMilla CLA
Modified: 2022-06-09 10:06 EDT (History)
4 users (show)

See Also:


Attachments
test code (513 bytes, text/plain)
2011-09-08 10:18 EDT, Stephen DiMilla CLA
no flags Details
entity class (1.01 KB, text/plain)
2011-09-08 10:19 EDT, Stephen DiMilla CLA
no flags Details
proposed fix (22.70 KB, application/octet-stream)
2013-02-04 15:19 EST, Tom Ware CLA
no flags Details
additional patch (11.74 KB, patch)
2013-02-20 10:05 EST, Tom Ware CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen DiMilla CLA 2011-09-08 10:13:40 EDT
Build Identifier: eclipselink-2.3.0.v20110604-r9504

After creating a TypedQuery that uses positional parameters, if Parameter.getPostion() is called on that parameter a null result is returned 


Reproducible: Always

Steps to Reproduce:
1.modify the test code to reference a preexisting database table.
2. Run the test code
Comment 1 Stephen DiMilla CLA 2011-09-08 10:18:50 EDT
Created attachment 202992 [details]
test code
Comment 2 Stephen DiMilla CLA 2011-09-08 10:19:20 EDT
Created attachment 202993 [details]
entity class
Comment 3 Tom Ware CLA 2012-04-05 11:01:20 EDT
Updating target milestone.
Comment 4 Tom Ware CLA 2013-02-04 15:19:03 EST
Created attachment 226530 [details]
proposed fix
Comment 5 Tom Ware CLA 2013-02-04 15:35:23 EST
Fix for JPA 2.1 Query Parameter Bugs 357089, 366526, 366530, 366576 checked in together

Reviewed by Guy Pelletier

Added QueryTestSuite to JPA 2.1 testing

Tested with JPA LRG
Comment 6 Tom Ware CLA 2013-02-20 10:05:10 EST
Created attachment 227337 [details]
additional patch
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:06:00 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink