All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quincy.auth.entity.Role Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package com.quincy.auth.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import lombok.Data;

@Data
@DynamicInsert
@DynamicUpdate
@EntityListeners({AuditingEntityListener.class})
@Entity(name = "s_role")
public class Role {
	@Id
	@Column(name="id")
	private Long id;
//	@ManyToMany(cascade = CascadeType.ALL)
//	@JoinTable(name = "s_permission_role_rel", joinColumns = {@JoinColumn(name = "role_id")}, inverseJoinColumns = {@JoinColumn(name = "permission_id")})
//	private Set permissions;
	@Column(name="name")
	private String name;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy