I obtain runtime error:
Caused by: net.sf.hibernate.MappingException: invalid mapping
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:282)
at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:322)
... 7 more
Caused by: org.xml.sax.SAXParseException: The content of element type "array" must match "(meta*,(cache|jcs-cache)?,key,index,(element|one-to-many|many-to-many|composite-element|many-to-any))".
part of hbm.xml
Code:
<joined-subclass
name="com.domainmodel.InstrumentBondStatic"
table="INSTRUMENT_BOND_TBL"
dynamic-update="false"
dynamic-insert="false"
proxy="com.domainmodel.InstrumentBondStatic"
>
<key column="instrumentId"/>
<array name="payments">
<key column="instrumentId"/>
<one-to-many class="com.domainmodel.InstrumentBondSpec"/>
</array>
<property
name="issueRate"
type="java.lang.Double"
update="true"
insert="true"
column="issueRate"
/>
</joined-subclass>
If
Quote:
array
is replaced with
Quote:
set
for example, everything works ok.