package org.codiki.core.entities.persistence;

import java.io.Serializable;

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

import org.codiki.core.entities.dto.View;

import com.fasterxml.jackson.annotation.JsonView;
import org.hibernate.annotations.Proxy;

@Entity
@Table(name="role")
@Proxy(lazy = false)
public class Role implements Serializable {
	private static final long serialVersionUID = 1L;

	@JsonView({View.UserDTO.class})
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@JsonView({View.UserDTO.class})
	private String name;

	public Long getId() {
		return id;
	}

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

	public String getName() {
		return name;
	}

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