大家好!有個問題不解,急需解決!CommandContent.xml文件中的Content的值是如何傳過來的?
在Command.xml>ResultMap中的commandlist是通過引用CommandContent.xml>ResultMap中content來傳值的,那CommandContent.xml>ResultMap中content又是誰給他傳的值呢?是怎么傳的?求大牛解救!
在Command.xml>ResultMap中的commandlist是通過引用CommandContent.xml>ResultMap中content來傳值的,那CommandContent.xml>ResultMap中content又是誰給他傳的值呢?是怎么傳的?求大牛解救!
2015-11-08
舉報
2016-07-18
CommandContent.xml>ResultMap中content是在對應的bean目錄下的類里面得到的,而類里面的對象又是從數據庫中得到的。
2015-12-28
你說的這個是應經在主表中配置了關聯關系,看你的主表配置文件
2015-12-28
CONTENT是select語句查詢出來的,對應賦值給對應實體類中的content屬性,應該是這樣吧,如果不是,請指正