大家好!有個問題不解,急需解決!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又是誰給他傳的值呢?是怎么傳的?求大牛解救!
舉報
2016-07-18
CommandContent.xml>ResultMap中content是在對應(yīng)的bean目錄下的類里面得到的,而類里面的對象又是從數(shù)據(jù)庫中得到的。
2015-12-28
你說的這個是應(yīng)經(jīng)在主表中配置了關(guān)聯(lián)關(guān)系,看你的主表配置文件
2015-12-28
CONTENT是select語句查詢出來的,對應(yīng)賦值給對應(yīng)實體類中的content屬性,應(yīng)該是這樣吧,如果不是,請指正