主题 : 求助channel和model不是一对一的关系么? |
级别: 举人
|
1# 发表于:2016-05-30 15:30:11 IP:211.225.*.*
|
||||
---|---|---|---|---|---|
级别: 举人
|
3# 发表于:2016-05-30 15:33:24 IP:211.225.*.*
既然一个栏目只能对应一个模型
那Channel.hbm.xml为什么要将channelModels这个字段定义为一个LIST??? <list name="channelModels" table="jc_channel_model"> <cache usage="read-write"/> <key column="channel_id"/> <list-index column="priority"/> <composite-element class="ChannelModel"> <property name="tplContent" column="tpl_content" type="string" length="100" not-null="true"/> <many-to-one name="model" column="model_id" class="CmsModel" not-null="false"></many-to-one> </composite-element> </list> |
||
---|---|---|---|
1
共1页