Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349015

Summary: New JPA entity with IdClass, referenced incorrectly in orm.xml
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: JPAAssignee: Nan Li <nan.n.li>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: 3.0Flags: neil.hauge: review+
Target Milestone: 3.1 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Patch neil.hauge: iplog+

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