common-BeanUtils使用

1。在審核過程中,我們經常要把臨時表中的數據拷貝到正式表中。(即hibernate中我們將臨時表的model數據拷貝到正式表的model中),下面是使用BeanUtils包將studentTemp拷貝到studnet中一個例子: student.java如下:     studentTemp.java如下:   由於BeanUtils中copyProperties方法只支持簡單的屬性拷貝。爲使Cl
相關文章
相關標籤/搜索