/**
*
*/
package nl.ipo.cds.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
* Thema van Inspire dataset type.<br>
* <em>Stamtabel<em>.
*
* @author Rob
*
*/
@Entity
//@Table(name="thema", schema="manager")
public class Thema implements Identity {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column(unique=true, nullable=false)
private String naam;
private String emailteksten;
/**
* @return the id
*/
@Override
public Long getId() {
return id;
}
/**
* @param id
* the id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* @return the naam
*/
public String getNaam() {
return naam;
}
/**
* @param naam
* the naam to set
*/
public void setNaam(String naam) {
this.naam = naam;
}
public String getEmailteksten() {
return emailteksten;
}
public void setEmailteksten(String emailteksten) {
this.emailteksten = emailteksten;
}
public String toString(){
return "## Thema (id: " + id + ", naam: " + naam + ")";
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((id == null) ? 0 : id.hashCode());
result = prime * result + ((naam == null) ? 0 : naam.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Thema other = (Thema) obj;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
if (naam == null) {
if (other.naam != null)
return false;
} else if (!naam.equals(other.naam))
return false;
return true;
}
}