Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349015 - New JPA entity with IdClass, referenced incorrectly in orm.xml
Summary: New JPA entity with IdClass, referenced incorrectly in orm.xml
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Nan Li CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-10 08:28 EDT by Karen Butzke CLA
Modified: 2011-11-02 12:41 EDT (History)
2 users (show)

See Also:
neil.hauge: review+


Attachments
Proposed Patch (2.64 KB, patch)
2011-09-28 14:17 EDT, Nan Li CLA
neil.hauge: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2011-06-10 08:28:55 EDT
1.Use the New JPA Entity wizard to create a new entity
2. Choose to add it to an orm.xml file
3. Add multiple id fields on the second page of the wizard by creating multiple fields and selecting the key check box.

a PK class is created, but the reference to it in the orm.xml file is not fully qualified with the package name - <id-class class="MyBarPK"/>. This causes a validation error "ID class does not exist on the project classpath"
Comment 1 Neil Hauge CLA 2011-07-01 16:26:27 EDT
Moving JPA specific bugs to new JPA component in bugzilla.
Comment 2 Nan Li CLA 2011-09-28 14:17:30 EDT
Created attachment 204209 [details]
Proposed Patch
Comment 3 Neil Hauge CLA 2011-10-25 17:23:45 EDT
Patch applied to head.
Comment 4 Neil Hauge CLA 2011-10-25 17:27:00 EDT
.
Comment 5 Jolene Moffitt CLA 2011-11-02 12:41:48 EDT
Verified in Build I-3.4.0-2011102024120 

Verified when you create entity with two or more attributes set as primary key and add the entity to the orm.xml no validation error appears. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.1_M3