package com.uwetrottmann.seriesguide;

import javax.persistence.Entity;

@Entity
public class Show extends BaseEntity {

    private int tvdbId;

    private boolean isFavorite;

    private boolean isHidden;

    private boolean isSyncEnabled;

    private String getGlueId;

    public Show() {
    }

    public boolean isFavorite() {
        return isFavorite;
    }

    public void setFavorite(boolean isFavorite) {
        this.isFavorite = isFavorite;
    }

    public int getTvdbId() {
        return tvdbId;
    }

    public void setTvdbId(int tvdbId) {
        this.tvdbId = tvdbId;
    }

    public void copyPropertyValues(Show show) {
        setFavorite(show.isFavorite());
    }

    public boolean isHidden() {
        return isHidden;
    }

    public void setHidden(boolean isHidden) {
        this.isHidden = isHidden;
    }

    public boolean isSyncEnabled() {
        return isSyncEnabled;
    }

    public void setSyncEnabled(boolean isSyncEnabled) {
        this.isSyncEnabled = isSyncEnabled;
    }

    public String getGetGlueId() {
        return getGlueId;
    }

    public void setGetGlueId(String getGlueId) {
        this.getGlueId = getGlueId;
    }
}

@@ -32,16 +32,58 @@
 guide;%0A%0A
+import org.datanucleus.util.StringUtils;%0A%0A
 import j
@@ -646,87 +646,744 @@
     
-public void copyPropertyValues(Show show) %7B%0A        setFavorite(show.isFavorite
+/**%0A     * If any of the show specific properties differ returns false.%0A     */%0A    public boolean hasSameValues(Show show) %7B%0A        if (isFavorite() != show.isFavorite()) %7B%0A            return false;%0A        %7D%0A        if (isHidden() != show.isHidden()) %7B%0A            return false;%0A        %7D%0A        if (isSyncEnabled() != show.isSyncEnabled()) %7B%0A            return false;%0A        %7D%0A        if (!StringUtils.areStringsEqual(getGetGlueId(), show.getGetGlueId())) %7B%0A            return false;%0A        %7D%0A        return true;%0A    %7D%0A%0A    public void copyPropertyValues(Show show) %7B%0A        setFavorite(show.isFavorite());%0A        setHidden(show.isHidden());%0A        setSyncEnabled(show.isSyncEnabled());%0A        setGetGlueId(show.getGetGlueId
 ());

Copy all possible show properties, add hasSameValues check.