When default meta-type used in <any> hibernate doesn't read <meta-value>
subelements for <any>.
-----------------------------------------------------------------------------------------------
Key: HHH-3784
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3784
Project: Hibernate Core
Issue Type: Bug
Reporter: Dmitry Geraskov
Priority: Minor
Attachments: HbmBinder.txt
HbmBinder#bindAny(...) have the following code:
any.setIdentifierType( getTypeFromXML( node ) );
Attribute metaAttribute = node.attribute( "meta-type" );
if ( metaAttribute != null ) {
...read meta-value elements
}
So, for mapping
<any name="data" id-type="long" cascade="none" >
<meta-value value="A" class="Address"/>
<column name="DATATYPE_"/>
<column name="DATAID_"/>
</any>
and
<any name="data" id-type="long" cascade="none"
meta-type="string">
<meta-value value="A" class="Address"/>
<column name="DATATYPE_"/>
<column name="DATAID_"/>
</any>
will be generated different Configuration objects, but must be the same as
Any.meta-type="string" as default.
Patch for baranch hibernate-3.2 attached.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira