当我尝试使用以下xml mapping
文件运行程序时,我得到一个异常,它说:
org.xml.sax.SAXParseException: The content of element type "joined-subclass"
must match "(meta*,subselect?,synchronize*,comment?,tuplizer*,key,
(property|many-to-one|one-to-one|component|dynamic-
component|properties|any|map|set|list|bag|idbag|array|primitive-array)*,
joined-subclass*,loader?,sql-insert?,sql-update?,sql-delete?,resultset*,
(query|sql-query)*)".
为什么我会得到它?这可能是什么原因?
<class name="pojo.Parent" table="student_detail">
<id name="roll_number">
<generator class="increment" />
</id>
<property name="s_name" />
<joined-subclass name="pojo.Child" table="child">
<property name="english" />
<property name="hindi" />
<property name="punjabi" />
<property name="total" />
</joined-subclass>