Bug 233332 - delete mapped-superclass from orm.xml, structure view not updated correctly
Summary: delete mapped-superclass from orm.xml, structure view not updated correctly
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Karen Butzke CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-21 16:01 EDT by Karen Butzke CLA
Modified: 2008-08-21 16:59 EDT (History)
1 user (show)

See Also:
neil.hauge: review+


Attachments
proposed patch - HEAD (2.31 KB, patch)
2008-06-10 16:34 EDT, Karen Butzke CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karen Butzke CLA 2008-05-21 16:01:03 EDT
<entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" version="1.0">
	<mapped-superclass class="model.Model">
	</mapped-superclass>
	<entity class="model.Employee">
	</entity>

</entity-mappings>

Open this orm.xml file with the JPA Structure view.  Delete the mapped-superclass directly from the xml source.  The jpa structure view now displays one entity named "model.Model" instead of "model.Employee".  I could not reproduce the same problem with 2 entities.
Comment 1 Karen Butzke CLA 2008-06-10 16:34:23 EDT
Created attachment 104386 [details]
proposed patch - HEAD

221931 was basically the same bug, but for attribute mappings, should have fixed this then.  Fix is the same, just for type mappings.
Comment 2 Karen Butzke CLA 2008-07-08 21:12:01 EDT
checked in to HEAD, haven't branched for 2.0.1 yet