Example #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = super.hashCode();
   result = prime * result + ((_accrualEndDate == null) ? 0 : _accrualEndDate.hashCode());
   result = prime * result + ((_accrualStartDate == null) ? 0 : _accrualStartDate.hashCode());
   long temp;
   temp = Double.doubleToLongBits(_amount);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   temp = Double.doubleToLongBits(_fixedRate);
   result = prime * result + (int) (temp ^ (temp >>> 32));
   return result;
 }
Example #2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((id == null) ? 0 : id.hashCode());
   result = prime * result + ((firstName == null) ? 0 : firstName.hashCode());
   result = prime * result + ((lastName == null) ? 0 : lastName.hashCode());
   result = prime * result + ((birthdate == null) ? 0 : birthdate.hashCode());
   result = prime * result + ((active == null) ? 0 : active.hashCode());
   result = prime * result + ((role == null) ? 0 : role.hashCode());
   result = prime * result + ((email == null) ? 0 : email.hashCode());
   return result;
 }