package de.solidsearch.manager.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class Crawler
{
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int crawlerId;

	@Column(columnDefinition = "text NOT NULL default ''")
	private String url = "http://localhost:8080/";

    @Column(columnDefinition = "text")
	private String authKey = "AADSXESDW123CC";

	private boolean disabled = false;

	public int getCrawlerId()
	{
		return crawlerId;
	}

	public void setCrawlerId(int crawlerId)
	{
		this.crawlerId = crawlerId;
	}

	public String getUrl()
	{
		return url;
	}

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

	public String getAuthKey()
	{
		return authKey;
	}

	public void setAuthKey(String authKey)
	{
		this.authKey = authKey;
	}

	public boolean isDisabled()
	{
		return disabled;
	}

	public void setDisabled(boolean disabled)
	{
		this.disabled = disabled;
	}
}
