title: find out the differences between two java beans for version tracking
body: <p>say i have a java bean/an entity with 100 fields (inherited or not it is not relevant in this case). After update operations - in a transaction, i want to determine which fields are modified to track updates like a CVS. What is the easiest way to do this? Any Framework suggestion? Should i make two instances of this object and iterate over all fields and match the values of fields ? How would the best equals method seem in such situations ? The following equals() seems very awkward : </p>
  
  <pre><code>return (field1.equals(o.field1)) &amp;&amp; 
  (field2.equals(o.field2)) &amp;&amp;  
  (field3.equals(o.field3)) &amp;&amp;  
  ...
  (field100.equals(o.field100));
  </code></pre>