3

Is there a library that can compare two javabeans by their properties and tell you the differences between them?

I was thinking this would be something BeanUtils will do but can't find it in the documentation

Basically I want to 'diff' them

skaffman
  • 398,947
  • 96
  • 818
  • 769
Farouk Alhassan
  • 3,780
  • 9
  • 51
  • 74
  • Related question http://stackoverflow.com/questions/578209/common-algorithm-for-generating-a-diff-of-the-fields-in-two-beans – artbristol Jul 07 '11 at 10:11

1 Answers1

0

No, there is no library for this, because it is trivial to implement. Just use the code from the link that artbristol provided in the comment.

Community
  • 1
  • 1
hidralisk
  • 706
  • 6
  • 18