package de.metalmatze.krautreporter.entities;

import java.net.URL;
import java.util.GregorianCalendar;

public class Article {

    private String uuid;
    private String title;
    private GregorianCalendar date;
    private URL link;
    private String content;

    public Article() {
    }

    public Article(String uuid, String title, GregorianCalendar date, URL link, String content) {
        this.uuid = uuid;
        this.title = title;
        this.date = date;
        this.link = link;
        this.content = content;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public GregorianCalendar getDate() {
        return date;
    }

    public void setDate(GregorianCalendar date) {
        this.date = date;
    }

    public URL getLink() {
        return link;
    }

    public void setLink(URL link) {
        this.link = link;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Article{" +
                "uuid='" + uuid + '\'' +
                ", title='" + title + '\'' +
                ", date=" + date +
                ", link=" + link +
                ", content='" + content + '\'' +
                '}';
    }
}

@@ -269,268 +269,55 @@
    p
-ublic Article() %7B%0A    %7D%0A%0A    public Article(String uuid, String title, GregorianCalendar d
+riv
 ate
-,
  URL 
-link, String content) %7B%0A        this.uuid = uuid;%0A        this.title = title;%0A        this.date = date;%0A        this.link = link;%0A        this.content = content;
+teaserImage;%0A%0A    public Article() %7B
 %0A   
@@ -1006,24 +1006,190 @@
 ent;%0A    %7D%0A%0A
+    public URL getTeaserImage() %7B%0A        return teaserImage;%0A    %7D%0A%0A    public void setTeaserImage(URL teaserImage) %7B%0A        this.teaserImage = teaserImage;%0A    %7D%0A%0A
     @Overrid
@@ -1405,16 +1405,65 @@
  link +%0A
+                %22, teaserImage=%22 + teaserImage +%0A
         

Add teaserImage as field to Article