Skip to content

Commit

Permalink
Add hashCode to OutboundIdAdapter (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
lassetyr committed Nov 22, 2024
1 parent 3042069 commit c18de18
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Objects;

public class OutboundIdAdapter extends ValueAdapter {

private final Logger logger = LoggerFactory.getLogger(OutboundIdAdapter.class);
Expand Down Expand Up @@ -80,6 +82,10 @@ public boolean equals(Object o) {

if (!super.getClassToApply().equals(that.getClassToApply())) return false;
return outboundIdMappingPolicy == that.outboundIdMappingPolicy;
}

@Override
public int hashCode() {
return Objects.hash(super.getClassToApply(), outboundIdMappingPolicy);
}
}

0 comments on commit c18de18

Please sign in to comment.