| Summary: | cananical metamodel generation with orm.xml using package element is broken | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> |
| Component: | General | Assignee: | Karen Butzke <karenfbutzke> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | brian.vosburgh, neil.hauge |
| Version: | 2.3 | ||
| Target Milestone: | 3.0 M6 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
We should try to fix this in 2.3.2. I fixed this back in March not realizing there was a bug for it. GenericOrmPersistentType.getName() was edited on March 2nd fixing this issue. |
Set up a canonical metamodel generation source folder for a JPA project with the following 2 classes and orm.xml file. The generated source has compiler errors because Bar_.java is generated into the model package. package com.model; public class Bar { private int id; } package com.model; public class Foo { private int id; private Bar bar; } orm.xml contains: <package>com</package> <entity class="model.Bar"> <attributes> <id name="id"> </id> </attributes> </entity> <entity class="com.model.Foo"> <attributes> <id name="id"> </id> <one-to-one name="bar"> </one-to-one> </attributes> </entity>