Message:
The following issue has been closed.
Resolver: Max Rydahl Andersen
Date: Wed, 15 Oct 2003 2:13 PM
This is expected behavior!
set inherit="false" on stuff you don't want to "bubble down" to other elements.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-403
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-403
Summary: hbm2java- Composite-element inherits "extends" meta attribute from class.
Type: Bug
Status: Closed
Priority: Critical
Resolution: REJECTED
Project: Hibernate2
Components:
toolset
Fix Fors:
2.1
Versions:
2.0.3
Assignee: Max Rydahl Andersen
Reporter: Jason Stiefel
Created: Wed, 15 Oct 2003 12:28 PM
Updated: Wed, 15 Oct 2003 2:13 PM
Environment: JDK 1.4
Description:
When using hbm2java a composite-element inherits the parent class "extends" meta attribute. For example, the class generated for the composite-element below will extend "LifecycleSupport" for some reason. :-)
<hibernate-mapping>
<class name="com.pwc.us.factiva.entity.Newsfeed" table="EXTRA_NEWSFEED">
<meta attribute="extends">com.pwc.us.factiva.entity.LifecycleSupport</meta>
....
<list name="selectedMetadata" table="EXTRA_NEWSFEED_METADATA" cascade="none" lazy="true">
<key column="NEWSFEED_ID"/>
<index column="INDEX"/>
<composite-element class="com.pwc.us.factiva.entity.MetadataSelection">
<parent name="newsfeed"/>
<property name="condition" type="com.pwc.us.factiva.entity.ConditionType" column="CONDITION_TYPE"/>
<many-to-one name="metadata" column="METADATA_ID" class="com.pwc.us.factiva.entity.Metadata"/>
</composite-element>
</list>
</class>
</hibernate-mapping>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|