Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369944 - [EclipseLink] dynamic persistence and extensible entities validation for attribute-type
Summary: [EclipseLink] dynamic persistence and extensible entities validation for attr...
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard: EclipseLink
Keywords: plan
Depends on:
Blocks: 309475
  Show dependency tree
 
Reported: 2012-01-27 10:27 EST by Karen Butzke CLA
Modified: 2012-03-22 09:05 EDT (History)
1 user (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 2012-01-27 10:27:32 EST
EclipseLink dynamic persistence and extensible entities use the attribute-type attribute on VIRTUAL mappings. We need to validate that attribute-type has been specified for an attribute mapping with an access type of VIRTUAL. Also validate that the attribute-type is a valid type on the classpath or another dynamic type. We could have xml code completion for this attribute. The package element is used in conjunction with attribute-type.
Comment 1 Karen Butzke CLA 2012-02-29 15:26:52 EST
Added the following validation:
These can exist EclipseLink attribute that has a specified or default access type of VIRTUAL:
1. Virtual attribute [attribute name] must specify an attribute-type
2. Attribute type [class name] does not exist

These were added to 1-m, m-m and element collection mappings if they define a map key class
3. Map key class [class name] is not an entity, embeddable or basic type
4. In implied attribute [attribute name], map key class [class name] is not an entity, embeddable or basic type

This was added for embedded or embedded-id mappings, there was no validation for an implied attribute:
5. In implied attribute [attribute name], [class name] is not mapped as an embeddable