You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
125 lines
3.2 KiB
125 lines
3.2 KiB
3 years ago
|
/*
|
||
|
* Copyright (C), 2018-2020
|
||
|
* Project: starter
|
||
|
* FileName: RoleGroupEntity
|
||
|
* Author: Louis
|
||
|
* Date: 2020/6/3 16:18
|
||
|
*/
|
||
|
package com.fr.plugin.idha.entity;
|
||
|
|
||
|
import com.fr.plugin.idha.bean.RoleGroup;
|
||
|
import com.fr.stable.db.entity.BaseEntity;
|
||
|
import com.fr.third.javax.persistence.Column;
|
||
|
import com.fr.third.javax.persistence.Entity;
|
||
|
import com.fr.third.javax.persistence.Table;
|
||
|
|
||
|
/**
|
||
|
* 〈Function Description〉<br>
|
||
|
* 〈RoleGroupEntity〉
|
||
|
*
|
||
|
* @author fr.open
|
||
|
* @since 1.0.0
|
||
|
*/
|
||
|
@Entity
|
||
|
@Table(name = "fine_role_group")
|
||
|
public class RoleGroupEntity extends BaseEntity {
|
||
|
public static final String COLUMN_GROUP_CODE = "groupCode";
|
||
|
public static final String COLUMN_GROUP_NAME = "groupName";
|
||
|
public static final String COLUMN_CONNECTION = "connection";
|
||
|
public static final String COLUMN_SQL = "sql";
|
||
|
public static final String COLUMN_TIMESTAMP = "timeStamp";
|
||
|
private static final long serialVersionUID = 2019521971055841884L;
|
||
|
@Column(name = "groupCode")
|
||
|
private String groupCode = "";
|
||
|
@Column(name = "groupName")
|
||
|
private String groupName = "";
|
||
|
@Column(name = "connection")
|
||
|
private String connection = "";
|
||
|
@Column(name = "sql")
|
||
|
private String sql = "";
|
||
|
@Column(name = "timeStamp")
|
||
|
private long timeStamp = 0L;
|
||
|
|
||
|
public RoleGroupEntity() {
|
||
|
}
|
||
|
|
||
|
public RoleGroup createBean(RoleGroup group) {
|
||
|
group.setId(this.getId());
|
||
|
group.setGroupCode(this.getGroupCode());
|
||
|
group.setGroupName(this.getGroupName());
|
||
|
group.setConnection(this.getConnection());
|
||
|
group.setSql(this.getSql());
|
||
|
group.setTimeStamp(this.getTimeStamp());
|
||
|
return group;
|
||
|
}
|
||
|
|
||
|
public RoleGroupEntity id(String id) {
|
||
|
this.setId(id);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public String getGroupCode() {
|
||
|
return this.groupCode;
|
||
|
}
|
||
|
|
||
|
public void setGroupCode(String groupCode) {
|
||
|
this.groupCode = groupCode;
|
||
|
}
|
||
|
|
||
|
public RoleGroupEntity groupName(String groupName) {
|
||
|
this.setGroupName(groupName);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public String getGroupName() {
|
||
|
return this.groupName;
|
||
|
}
|
||
|
|
||
|
public void setGroupName(String groupName) {
|
||
|
this.groupName = groupName;
|
||
|
}
|
||
|
|
||
|
public RoleGroupEntity groupCode(String groupCode) {
|
||
|
this.setGroupCode(groupCode);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public String getConnection() {
|
||
|
return this.connection;
|
||
|
}
|
||
|
|
||
|
public void setConnection(String connection) {
|
||
|
this.connection = connection;
|
||
|
}
|
||
|
|
||
|
public RoleGroupEntity connection(String connection) {
|
||
|
this.setConnection(connection);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public String getSql() {
|
||
|
return this.sql;
|
||
|
}
|
||
|
|
||
|
public void setSql(String sql) {
|
||
|
this.sql = sql;
|
||
|
}
|
||
|
|
||
|
public RoleGroupEntity sql(String sql) {
|
||
|
this.setSql(sql);
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
public long getTimeStamp() {
|
||
|
return this.timeStamp;
|
||
|
}
|
||
|
|
||
|
public void setTimeStamp(long timeStamp) {
|
||
|
this.timeStamp = timeStamp;
|
||
|
}
|
||
|
|
||
|
public RoleGroupEntity timeStamp(long timeStamp) {
|
||
|
this.setTimeStamp(timeStamp);
|
||
|
return this;
|
||
|
}
|
||
|
}
|