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

com.quhaodian.user.data.entity.UserCode Maven / Gradle / Ivy

There is a newer version: 1.8.31
Show newest version
package com.quhaodian.user.data.entity;

import com.quhaodian.data.entity.AbstractEntity;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 用户状态吗登录相当于匿名登录
 */
@Entity
@Table(name = "user_code")
public class UserCode extends AbstractEntity {
  
  private String code;
  
  /**
   * 和用户绑定
   */
  @ManyToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "userid")
  private UserInfo user;
  
  /**
   * 通过该code登录的次数
   */
  private Integer loginSize;
  
  public String getCode() {
    return code;
  }
  
  public void setCode(String code) {
    this.code = code;
  }
  
  public UserInfo getUser() {
    return user;
  }
  
  public void setUser(UserInfo user) {
    this.user = user;
  }
  
  public Integer getLoginSize() {
    return loginSize;
  }
  
  public void setLoginSize(Integer loginSize) {
    this.loginSize = loginSize;
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy