sk.baka.tools.jpa
Class JpaBeanComparator

java.lang.Object
  extended by sk.baka.tools.jpa.JpaBeanComparator
All Implemented Interfaces:
JavaUtils.IEqualsComparator

public class JpaBeanComparator
extends Object
implements JavaUtils.IEqualsComparator

Provides a comparator which compares JPA beans. Implements several corner-cases for equals such has:

Author:
Martin Vysny

Constructor Summary
JpaBeanComparator()
           
 
Method Summary
 boolean equals(Object o1, Object o2)
          Tests whether given objects are equal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaBeanComparator

public JpaBeanComparator()
Method Detail

equals

public boolean equals(Object o1,
                      Object o2)
Description copied from interface: JavaUtils.IEqualsComparator
Tests whether given objects are equal.

Specified by:
equals in interface JavaUtils.IEqualsComparator
Parameters:
o1 - the first object to test
o2 - the second object to test
Returns:
true if they are equal, false otherwise.


Copyright © 2009-2010. All Rights Reserved.