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

com.mybatisflex.test.model.UserInfo Maven / Gradle / Ivy

The newest version!
/*
 *  Copyright (c) 2022-2025, Mybatis-Flex ([email protected]).
 *  

* 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 com.mybatisflex.test.model; import com.mybatisflex.annotation.RelationManyToMany; import java.util.List; /** * 用户信息。 * * @author 王帅 * @since 2023-06-07 */ public class UserInfo { private Integer userId; private String userName; private String password; private String idNumber; @RelationManyToMany( selfField = "userId", targetField = "roleId", joinTable = "tb_user_role", joinSelfColumn = "user_id", joinTargetColumn = "role_id" ) private List roleList; @RelationManyToMany( selfField = "userId", targetField = "orderId", targetTable = "tb_order", joinTable = "tb_user_order", joinSelfColumn = "user_id", joinTargetColumn = "order_id" ) private List orderInfoList; public Integer getUserId() { return userId; } public void setUserId(Integer userId) { this.userId = userId; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getIdNumber() { return idNumber; } public void setIdNumber(String idNumber) { this.idNumber = idNumber; } public List getRoleList() { return roleList; } public void setRoleList(List roleList) { this.roleList = roleList; } public List getOrderInfoList() { return orderInfoList; } public void setOrderInfoList(List orderInfoList) { this.orderInfoList = orderInfoList; } @Override public String toString() { return "UserInfo{" + "userId=" + userId + ", userName='" + userName + '\'' + ", password='" + password + '\'' + ", idNumber='" + idNumber + '\'' + ", roleList=" + roleList + ", orderInfoList=" + orderInfoList + '}'; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy