/*
 * Role.java
 *
 * Autor: Piotr Achinger <piotr.achinger at gmail.com>
 */
package dendrarium.core.entities;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.jboss.seam.annotations.security.management.RoleName;

/**
 *
 * @author pta
 */
@Entity
public class Role implements Serializable {

    private Integer roleId;
    private String rolename;

    public Role(String rolename) {
        this.rolename = rolename;
    }

    public Role() {
    }
    

    @Id
    @GeneratedValue
    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @RoleName
    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }
}
