package org.pdxfinder.dao;

import org.neo4j.ogm.annotation.GraphId;
import org.neo4j.ogm.annotation.NodeEntity;

import java.util.Date;

/**
 * ExternalDataSource represents an external data provider
 */
@NodeEntity
public class ExternalDataSource {

    @GraphId
    private Long id;

    private String name;
    private String abbreviation;
    private String description;
    private String contact;
    private Date dateLastUpdated;

    private String url;

    public ExternalDataSource() {
        // Empty constructor required as of Neo4j API 2.0.5
    }

    public ExternalDataSource(String name, String abbreviation, String description,String contact, Date dateLastUpdated) {
        this.name = name;
        this.abbreviation = abbreviation;
        this.description = description;
        this.dateLastUpdated = dateLastUpdated;
        this.contact = contact;
    }

    public ExternalDataSource(String name, String abbreviation, String description, String contact, Date dateLastUpdated, String url) {
        this.name = name;
        this.abbreviation = abbreviation;
        this.description = description;
        this.contact = contact;
        this.dateLastUpdated = dateLastUpdated;
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAbbreviation() {
        return abbreviation;
    }

    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public Date getDateLastUpdated() {
        return dateLastUpdated;
    }

    public void setDateLastUpdated(Date dateLastUpdated) {
        this.dateLastUpdated = dateLastUpdated;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}

@@ -129,16 +129,39 @@
 il.Date;
+%0Aimport java.util.List;
 %0A%0A/**%0A *
@@ -479,16 +479,83 @@
 ing url;
+%0A    private String type;%0A    private List%3CString%3E serviceProvided;
 %0A%0A    pu
@@ -2264,11 +2264,349 @@
 l;%0A    %7D
+%0A%0A    public String getType() %7B%0A        return type;%0A    %7D%0A%0A    public void setType(String type) %7B%0A        this.type = type;%0A    %7D%0A%0A    public List%3CString%3E getServiceProvided() %7B%0A        return serviceProvided;%0A    %7D%0A%0A    public void setServiceProvided(List%3CString%3E serviceProvided) %7B%0A        this.serviceProvided = serviceProvided;%0A    %7D
 %0A%7D%0A

Add type and serviceProvided fields