win.doyto.query.test.user.UserView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doyto-query-test Show documentation
Show all versions of doyto-query-test Show documentation
The test package for DoytoQuery Library
// Generated by delombok at Sat Jan 27 04:38:03 UTC 2024
/*
* Copyright © 2019-2024 Forb Yuan
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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 win.doyto.query.test.user;
import win.doyto.query.annotation.DomainPath;
import win.doyto.query.annotation.Id;
import win.doyto.query.entity.Persistable;
import win.doyto.query.test.menu.MenuView;
import win.doyto.query.test.perm.PermView;
import win.doyto.query.test.role.RoleStatView;
import win.doyto.query.test.role.RoleView;
import java.util.List;
/**
* UserCountByRoleView
*
* @author f0rb on 2019-06-15
*/
public class UserView implements Persistable {
@Id
private Long id;
private String username;
private String email;
// many-to-many
@DomainPath({"user", "role"})
private List roles;
// many-to-many
@DomainPath({"user", "role", "perm"})
private List perms;
// many-to-many
@DomainPath({"user", "role", "perm", "menu"})
private List menus;
// many-to-one
@DomainPath(value = "user", localField = "create_user_id")
private UserView createUser;
// one-to-many
@DomainPath(value = "role", foreignField = "create_user_id")
private List createRoles;
// many-to-many aggregation
@DomainPath({"user", "role"})
private RoleStatView roleStat;
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Long getId() {
return this.id;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getUsername() {
return this.username;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getEmail() {
return this.email;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getRoles() {
return this.roles;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getPerms() {
return this.perms;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getMenus() {
return this.menus;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public UserView getCreateUser() {
return this.createUser;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getCreateRoles() {
return this.createRoles;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public RoleStatView getRoleStat() {
return this.roleStat;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setId(final Long id) {
this.id = id;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setUsername(final String username) {
this.username = username;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setEmail(final String email) {
this.email = email;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setRoles(final List roles) {
this.roles = roles;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setPerms(final List perms) {
this.perms = perms;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setMenus(final List menus) {
this.menus = menus;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setCreateUser(final UserView createUser) {
this.createUser = createUser;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setCreateRoles(final List createRoles) {
this.createRoles = createRoles;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setRoleStat(final RoleStatView roleStat) {
this.roleStat = roleStat;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy