欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

無主鍵表 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>