简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM