package com.microstar.tap3.db;
// Generated Jun 12, 2017 8:29:18 AM by Hibernate Tools 4.3.1.Final

import org.hibernate.annotations.GenericGenerator;
import javax.persistence.GeneratedValue;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * ContactType generated by hbm2java
 */
@Entity
@Table(name = "ContactType", uniqueConstraints = @UniqueConstraint(columnNames = "Name"))
public class ContactType implements java.io.Serializable
{

	private String	id;
	private String	name;

	public ContactType()
	{
	}

	public ContactType(String id, String name)
	{
		this.id = id;
		this.name = name;
	}

	@Id @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "uuid2")

	@Column(name = "id", unique = true, nullable = false, length = 36)
	public String getId()
	{
		return this.id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	@Column(name = "Name", unique = true, nullable = false, length = 10)
	public String getName()
	{
		return this.name;
	}

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

}
