当前位置: 动力学知识库 > 问答 > 编程问答 >

Is there a Java library to merge data model?

问题描述:

We want to merge 2 set of data using the same model:

we have 2 databases that have the same DDL, but containing different data.

We want to merge both and save the result. Merge should be configurable to allow us to write some rules.

Do you known any framework / library able to do that ?

网友答案:

You can explore Dozer for this purpose.

Dozer is a Java Bean to Java Bean mapper that recursively copies data from one object to another. Typically, these Java Beans will be of different complex types. Dozer supports simple property mapping, complex type mapping, bi-directional mapping, implicit-explicit mapping, as well as recursive mapping. This includes mapping collection attributes that also need mapping at the element level.

分享给朋友:
您可能感兴趣的文章:
随机阅读: