package com.gurkensalat.calendar.perrypedia.releasecalendar;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "WIKI_PAGE")
public class WikiPage
{
    @Transient
    public static final String VALID = "Y";

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    private String seriesPrefix;

    private int issueNumber;

    private String sourcePageId;

    private String sourcePageTitle;

    private String sourceValid;

    private String fullPageId;

    private String fullPageTitle;

    private String fullPageValid;

    private String valid;

    public WikiPage()
    {
    }

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getSeriesPrefix()
    {
        return seriesPrefix;
    }

    public void setSeriesPrefix(String seriesPrefix)
    {
        this.seriesPrefix = seriesPrefix;
    }

    public int getIssueNumber()
    {
        return issueNumber;
    }

    public void setIssueNumber(int issueNumber)
    {
        this.issueNumber = issueNumber;
    }

    public String getSourcePageId()
    {
        return sourcePageId;
    }

    public void setSourcePageId(String sourcePageId)
    {
        this.sourcePageId = sourcePageId;
    }

    public String getSourcePageTitle()
    {
        return sourcePageTitle;
    }

    public void setSourcePageTitle(String sourcePageTitle)
    {
        this.sourcePageTitle = sourcePageTitle;
    }

    public String getSourceValid()
    {
        return sourceValid;
    }

    public void setSourceValid(String sourceValid)
    {
        this.sourceValid = sourceValid;
    }

    public String getFullPageId()
    {
        return fullPageId;
    }

    public void setFullPageId(String fullPageId)
    {
        this.fullPageId = fullPageId;
    }

    public String getFullPageTitle()
    {
        return fullPageTitle;
    }

    public void setFullPageTitle(String fullPageTitle)
    {
        this.fullPageTitle = fullPageTitle;
    }

    public String getFullPageValid()
    {
        return fullPageValid;
    }

    public void setFullPageValid(String fullPageValid)
    {
        this.fullPageValid = fullPageValid;
    }

    public String getValid()
    {
        return valid;
    }

    public void setValid(String valid)
    {
        this.valid = valid;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString()
    {
        // @formatter:off
        return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
                .append("id", getId())
                .append("seriesPrefix", getSeriesPrefix())
                .append("number", getIssueNumber())
                .append("valid", getValid())
                .toString();
        // @formatter:on
    }
}

@@ -738,24 +738,28 @@
 tring source
+Page
 Valid;%0A%0A    
@@ -1813,24 +1813,28 @@
 ng getSource
+Page
 Valid()%0A    
@@ -1852,24 +1852,28 @@
 eturn source
+Page
 Valid;%0A    %7D
@@ -1895,24 +1895,28 @@
 id setSource
+Page
 Valid(String
@@ -1918,24 +1918,28 @@
 tring source
+Page
 Valid)%0A    %7B
@@ -1954,24 +1954,28 @@
  this.source
+Page
 Valid = sour
@@ -1976,16 +1976,20 @@
 = source
+Page
 Valid;%0A 

Clarify attribute name