package com.crunii.micro.domain.entity.main;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Table(name = "tsm_role_url")
@NamedQuery(name = "TsmRoleUrl.findAll", query="SELECT t FROM TsmRoleUrl t")
@DynamicInsert
@DynamicUpdate
@Getter
@Setter
@ToString
@EqualsAndHashCode(of= {"id"})
@ApiModel(description = "null")
public class TsmRoleUrl  implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "id")
	@ApiModelProperty(value = "null")
	private int id;

	@Column(name = "role_id")
	@ApiModelProperty(value = "null")
	private int roleId;

	@Column(name = "url_id")
	@ApiModelProperty(value = "null")
	private int urlId;

}
