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

Bug 320755

Summary: cananical metamodel generation with orm.xml using package element is broken
Product: [WebTools] Dali JPA Tools Reporter: Karen Butzke <karenfbutzke>
Component: GeneralAssignee: 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:

Description Karen Butzke CLA 2010-07-23 13:06:59 EDT
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>
Comment 1 Karen Butzke CLA 2010-07-23 13:07:43 EDT
We should try to fix this in 2.3.2.
Comment 2 Karen Butzke CLA 2011-06-07 11:13:32 EDT
I fixed this back in March not realizing there was a bug for it. GenericOrmPersistentType.getName() was edited on March 2nd fixing this issue.