-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
199 additions
and
0 deletions.
There are no files selected for viewing
120 changes: 120 additions & 0 deletions
120
docs/spring/cs2a8d8e84-8745-11ee-af38-acde48001122.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
package com.github.huifer.full.shiro.entity; | ||
|
||
import com.baomidou.mybatisplus.annotation.TableField; | ||
import com.baomidou.mybatisplus.annotation.Version; | ||
import java.util.Date; | ||
import com.baomidou.mybatisplus.extension.activerecord.Model; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* 角色和资源绑定表(ShiroRoleBindResource)表实体类 | ||
* | ||
* @author huifer | ||
* @since 2021-04-18 10:08:21 | ||
*/ | ||
@SuppressWarnings("serial") | ||
public class ShiroRoleBindResource extends Model<ShiroRoleBindResource> { | ||
|
||
private Integer id; | ||
|
||
private Integer roleId; | ||
|
||
private Integer resourceId; | ||
|
||
private Date createTime; | ||
|
||
private Integer createUser; | ||
|
||
private Integer updateUser; | ||
|
||
private Date updateTime; | ||
|
||
@Version | ||
private Integer version; | ||
|
||
@TableField | ||
private Integer deleted; | ||
|
||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public Integer getRoleId() { | ||
return roleId; | ||
} | ||
|
||
public void setRoleId(Integer roleId) { | ||
this.roleId = roleId; | ||
} | ||
|
||
public Integer getResourceId() { | ||
return resourceId; | ||
} | ||
|
||
public void setResourceId(Integer resourceId) { | ||
this.resourceId = resourceId; | ||
} | ||
|
||
public Date getCreateTime() { | ||
return createTime; | ||
} | ||
|
||
public void setCreateTime(Date createTime) { | ||
this.createTime = createTime; | ||
} | ||
|
||
public Integer getCreateUser() { | ||
return createUser; | ||
} | ||
|
||
public void setCreateUser(Integer createUser) { | ||
this.createUser = createUser; | ||
} | ||
|
||
public Integer getUpdateUser() { | ||
return updateUser; | ||
} | ||
|
||
public void setUpdateUser(Integer updateUser) { | ||
this.updateUser = updateUser; | ||
} | ||
|
||
public Date getUpdateTime() { | ||
return updateTime; | ||
} | ||
|
||
public void setUpdateTime(Date updateTime) { | ||
this.updateTime = updateTime; | ||
} | ||
|
||
public Integer getVersion() { | ||
return version; | ||
} | ||
|
||
public void setVersion(Integer version) { | ||
this.version = version; | ||
} | ||
|
||
public Integer getDeleted() { | ||
return deleted; | ||
} | ||
|
||
public void setDeleted(Integer deleted) { | ||
this.deleted = deleted; | ||
} | ||
|
||
/** | ||
* 获取主键值 | ||
* | ||
* @return 主键值 | ||
*/ | ||
@Override | ||
protected Serializable pkVal() { | ||
return this.id; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Copyright 2009-2018 the original author or authors. | ||
* <p> | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.apache.ibatis.submitted.constructor_columnprefix; | ||
|
||
public class Author { | ||
private Integer id; | ||
|
||
private String name; | ||
|
||
public Integer getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Integer id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* Copyright 2009-2015 the original author or authors. | ||
* <p> | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* <p> | ||
* Base package for the Configuration building code | ||
*/ | ||
/** | ||
* Base package for the Configuration building code | ||
*/ | ||
package org.apache.ibatis.builder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright 2009-2019 the original author or authors. | ||
* <p> | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.apache.ibatis.submitted.serializecircular; | ||
|
||
public interface AttributeMapper { | ||
Attribute getById(Integer anId); | ||
} |