package fi.otavanopisto.muikku.plugins.communicator.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.validation.constraints.NotNull;
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public class CommunicatorLabel {
public Long getId() {
return id;
}
public String getName() {
return null;
}
public Long getColor() {
return color;
}
public void setColor(Long color) {
this.color = color;
}
@Id
@GeneratedValue (strategy = GenerationType.IDENTITY)
private Long id;
@NotNull
@Column(nullable = false)
private Long color;
}