Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320755 - cananical metamodel generation with orm.xml using package element is broken
Summary: cananical metamodel generation with orm.xml using package element is broken
Status: RESOLVED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-23 13:06 EDT by Karen Butzke CLA
Modified: 2011-06-07 11:13 EDT (History)
2 users (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 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.