我现在有个多对多的关系。
- XML code
<set name="Dictionarys" table="lns_CmsContentModelDictionary" lazy="true" fetch="select"> <key column="ContentModel_ID"/> <many-to-many class="Loonws.Infrastructure.Domain.Base.Dictionary" column="Dictionary_ID" not-found="ignore" where="IsDelete=0" /> </set>
数据库的这个交叉表结构是两列,分别是ContentModel_ID和Dictionary_ID,能够实现多对多插入。 但是我现在想在这个交叉表上增加一个sort列,用来做排序字段,请问这样的映射文件怎么配置?或许我的思路有问题,请各位大大批评指正。多谢
------解决方案--------------------------------------------------------
直接手动修改sql语句新增字段不行吗?????????