Skip to content

Commit

Permalink
fix(entity): modify equality
Browse files Browse the repository at this point in the history
  • Loading branch information
davinkevin committed Jan 27, 2015
1 parent c7811ef commit 850b162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/lan/dk/podcastserver/entity/Podcast.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;

@Table(name = "podcast")
Expand Down Expand Up @@ -170,7 +171,7 @@ public boolean equals(Object o) {

Podcast that = (Podcast) o;

return id == that.id && !(lastUpdate != null ? !lastUpdate.equals(that.lastUpdate) : that.lastUpdate != null) && !(signature != null ? !signature.equals(that.signature) : that.signature != null) && !(title != null ? !title.equals(that.title) : that.title != null) && !(url != null ? !url.equals(that.url) : that.url != null);
return Objects.equals(id, that.id) && !(lastUpdate != null ? !lastUpdate.equals(that.lastUpdate) : that.lastUpdate != null) && !(signature != null ? !signature.equals(that.signature) : that.signature != null) && !(title != null ? !title.equals(that.title) : that.title != null) && !(url != null ? !url.equals(that.url) : that.url != null);

}

Expand Down

0 comments on commit 850b162

Please sign in to comment.