第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

hibernate配置一對(duì)多出錯(cuò)。。求指點(diǎn)

hibernate配置一對(duì)多出錯(cuò)。。求指點(diǎn)

qq_莫非 2017-12-20 21:27:40
<?xml?version="1.0"?encoding="utf-8"?> <!DOCTYPE?hibernate-mapping?PUBLIC?"-//Hibernate/Hibernate?Mapping?DTD?3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <!--? ????Mapping?file?autogenerated?by?MyEclipse?Persistence?Tools --> <hibernate-mapping> ????<class?name="orders"?table="orders"?catalog="hibernate"> ????????<id?name="oid"?type="integer"> ????????????<column?name="oid"?/> ????????????<generator?class="identity"></generator> ????????</id> ????????<property?name="price"?type="float"> ????????????<column?name="price"?precision="12"?scale="0"?/> ????????</property> ????????<property?name="id"?type="string"> ????????????<column?name="id"?length="10"?/> ????????</property> ???????? ????????<many-to-one?name="stu"?column="id"?class="Student"></many-to-one> ???????? ????</class> </hibernate-mapping> <?xml?version="1.0"?encoding="utf-8"?> <!DOCTYPE?hibernate-mapping?PUBLIC?"-//Hibernate/Hibernate?Mapping?DTD?3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> <!--? ????Mapping?file?autogenerated?by?MyEclipse?Persistence?Tools --> <hibernate-mapping> ????<class?name="Student"?table="student"?catalog="hibernate"> ????????<id?name="id"?type="string"> ????????????<column?name="id"?length="10"?/> ????????????<generator?class="assigned"></generator> ????????</id> ????????<property?name="name"?type="string"> ????????????<column?name="name"?length="20"?/> ????????</property> ????????<property?name="age"?type="integer"> ????????????<column?name="age"?/> ????????</property> ???????? ? ???????? ????????<set?name="order"> ???????? <key?column="id"></key> ???????? <one-to-many?class="orders"/> ????????</set> ???????? ????</class> </hibernate-mapping>
查看完整描述

1 回答

?
HZK135

TA貢獻(xiàn)10條經(jīng)驗(yàn) 獲得超3個(gè)贊

<one-to-many?class="orders"/> 和?<many-to-one?name="stu"?column="id"?class="Student"></many-to-one> 的class屬性要用類的全名

查看完整回答
反對(duì) 回復(fù) 2017-12-30
  • 1 回答
  • 0 關(guān)注
  • 1166 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)