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

io.robe.admin.hibernate.entity.RoleGroup Maven / Gradle / Ivy

There is a newer version: 0.5.0.0-1039
Show newest version
package io.robe.admin.hibernate.entity;


import com.fasterxml.jackson.annotation.JsonIgnore;
import io.robe.auth.data.entry.RoleGroupEntry;
import io.robe.common.service.search.SearchIgnore;
import io.robe.hibernate.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table
public class RoleGroup extends BaseEntity implements RoleGroupEntry {

    @SearchIgnore
    @Column(length = 32)
    private String roleOid;
    @SearchIgnore
    @Column(length = 32)
    private String groupOid;

    public String getRoleOid() {
        return roleOid;
    }

    public void setRoleOid(String roleOid) {
        this.roleOid = roleOid;
    }

    public String getGroupOid() {
        return groupOid;
    }

    public void setGroupOid(String groupOid) {
        this.groupOid = groupOid;
    }

    @JsonIgnore
    @Override
    public String getId() {
        return getOid();
    }

    @JsonIgnore
    @Override
    public String getRoleId() {
        return getRoleOid();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy