無主鍵表 Attribute "xxx " must be declared for element type "xxx"
程序员文章站
2022-07-15 13:09:45
...
<class name="xxx" table="xxx">
<composite-id>
<key-property name="xx">
<column name="xx" sql-type="decimal" precision="4" scale="2" not-null="true"></column>
</key-property>
</composite-id>
</class>
<class name="xxx" table="xxx">
<composite-id>
<key-property name="xxx">
<column name="xxx" sql-type="nvarchar(300)"></column>
</key-property>
</composite-id>
</class>