| | |
| | | package org.springblade.system.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | |
| | | @ApiModel(value = "UserPwdStrtategy", description = "UserPwdStrtategy") |
| | | public class UserPwdstrategy implements Serializable { |
| | | |
| | | private static final long serialVersionUID = -556926788101426521L; |
| | | private static final long serialVersionUid = -556926788101426521L; |
| | | |
| | | /** |
| | | * 主键 |
| | | */ |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | @ApiModelProperty(value = "主键") |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private Long Id; |
| | | @TableId(value = "ID", type = IdType.ASSIGN_ID) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 用户id |
| | |
| | | * 密码策略id |
| | | */ |
| | | @ApiModelProperty(value = "密码策略id") |
| | | @TableField(value = "PWDSTRATEGY_ID") |
| | | private Long pwdstrategyId; |
| | | |
| | | public UserPwdstrategy(Long userId, Long pwdStrategyId) { |
| | |
| | | return false; |
| | | } |
| | | UserPwdstrategy that = (UserPwdstrategy) o; |
| | | return Objects.equals(Id, that.Id) && Objects.equals(userId, that.userId) && Objects.equals(pwdstrategyId, that.pwdstrategyId); |
| | | return Objects.equals(id, that.id) && Objects.equals(userId, that.userId) && Objects.equals(pwdstrategyId, that.pwdstrategyId); |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | return Objects.hash(Id, userId, pwdstrategyId); |
| | | return Objects.hash(id, userId, pwdstrategyId); |
| | | } |
| | | |
| | | |
| | | |
| | | } |