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

com.quhaodian.notice.data.entity.UserMessageSubject Maven / Gradle / Ivy

There is a newer version: 3.3.18-20230117
Show newest version
package com.quhaodian.notice.data.entity;

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


@Entity
@Table(name = "user_message_subject")
public class UserMessageSubject extends AbstractEntity {
  
  /**
   * 用户
   */
  
  @ManyToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "uid")
  private UserInfo user;
  
  /**
   * 主题
   */
  private String subject;
  
  /**
   * 消息类型 1为私信 2为群聊
   */
  private Integer catalog;
  
  /**
   * 参与人数
   */
  private Integer members;
  
  /**
   * 最后消息
   */
  private String lastMessage;
  
  public UserInfo getUser() {
    return user;
  }
  
  public void setUser(UserInfo user) {
    this.user = user;
  }
  
  public String getSubject() {
    return subject;
  }
  
  public void setSubject(String subject) {
    this.subject = subject;
  }
  
  public Integer getCatalog() {
    return catalog;
  }
  
  public void setCatalog(Integer catalog) {
    this.catalog = catalog;
  }
  
  public Integer getMembers() {
    return members;
  }
  
  public void setMembers(Integer members) {
    this.members = members;
  }
  
  public String getLastMessage() {
    return lastMessage;
  }
  
  public void setLastMessage(String lastMessage) {
    this.lastMessage = lastMessage;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy