以下を検証するとxml
、次のエラーが発生します。
The content of element type "class" must match "(meta*,subselect?,cache?,
synchronize*,comment?,tuplizer*,(id|composite-id),
discriminator?,natural-id?,(version|timestamp)?,
(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map
|set|list|bag|idbag|array|primitive-array)*,((join*,subclass*)|joined-subclass*|
union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter*,resultset*,
(query|sql-query)*)". [16]
これを取得している理由は何ですか?
<hibernate-mapping>
<class name="pojo.Parent" table="student_detail">
<id name="roll_number">
<generator class="increment" />
</id>
<property name="s_name" />
<discriminator column="discrim" type="string" />
<subclass name="pojo.Child">
<property name="hindi" />
<property name="english" />
<property name="punjabi" />
<property name="total" />
</subclass>
</class>
</hibernate-mapping>