Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354676 - [Validation][JPA2.0] MapKeyClass validation needed for 1-m and m-m mappings
Summary: [Validation][JPA2.0] MapKeyClass validation needed for 1-m and m-m mappings
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 enhancement (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard: JPA2.0
Keywords: plan
Depends on:
Blocks:
 
Reported: 2011-08-12 17:22 EDT by Karen Butzke CLA
Modified: 2011-10-05 08:03 EDT (History)
1 user (show)

See Also:


Attachments
test project (7.46 KB, application/x-zip-compressed)
2011-09-29 12:10 EDT, Karen Butzke CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2011-08-12 17:22:16 EDT
We have MapKeyClass validation on an element collection mapping, we need to add the same validation to 1-m and m-m mappings including orm.xml virtuals
Comment 1 Karen Butzke CLA 2011-08-25 16:28:11 EDT
added validation to java 1-m and m-m:
1. Map key class not defined
2. In implied attribute <attribute-name>, map key class not defined

added validation to orm 1-m and m-m:
1. Map key class not defined.
2. Map key class does not exist on the project classpath.

Same validation exists for element collections in java and orm and for the target-class element.

Also added validation for target-entity in orm for:
1. Target entity does not exist on the project classpath
Comment 2 Karen Butzke CLA 2011-08-25 16:30:21 EDT
fixed in 3.1M2
Comment 3 Karen Butzke CLA 2011-09-29 12:10:57 EDT
Created attachment 204310 [details]
test project

I've attached a test project that shows an element collection with both the "Map key class is not defined" and "Target class is not defined" validation errors.
Comment 4 Jolene Moffitt CLA 2011-10-05 08:03:24 EDT
Verified in Build I-3.4.0-20110922230524 

Verified map key class validation was added. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.1_M2