| Summary: | [Validation] Need validation when entities have same name but no name attribute explicitly specified | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> | ||||||||||
| Component: | General | Assignee: | Nan Li <nan.n.li> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | enhancement | ||||||||||||
| Priority: | P3 | CC: | neil.hauge | ||||||||||
| Version: | unspecified | Flags: | neil.hauge:
review+
|
||||||||||
| Target Milestone: | 3.0 M5 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows 7 | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Nan Li
Created attachment 186223 [details]
Patch
Created attachment 186225 [details]
Patch
Comment on attachment 186225 [details]
Patch
New patch. Removed the unused method "xmlClasslNames(MappingFileRef mappingFileRef)"
Created attachment 187218 [details]
Patch
-Split the big methods to multiple ones and entered them in different java classes
-Fixed the text range and some other issues found during refactoring the code
Created attachment 187364 [details]
Patch
-Added extra APIs to org.eclipse.jpt.core.context.persistence.PersistenceUnit interface, e.g. getJavaEntities, getOrmEntities, etc.
-Added validation of duplicate mapped classes cross the persistence unit regardless of the mapping types, e.g. define test1.Foo as an entity twice or as both entity and mapped superclass
-Added validation of duplicate entity names as described in this bug. This validation only applies to entity mapping type. The validation takes effect when duplicates exist among java entities, among orm entities, or/and between java entities and orm entities
In both validation cases above, overriding situation was considered. Both validations don't apply to java mapped classes which are overridden by the orm mapped classes.
Patch committed to head. |