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

com.quhaodian.notice.data.entity.UserNotificationMember 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.notice.data.enums.NotificationState;
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_notification_member")
public class UserNotificationMember extends AbstractEntity {
  
  @ManyToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "notificationid")
  private UserNotification notification;
  
  @ManyToOne(fetch = FetchType.LAZY)
  @JoinColumn(name = "uid")
  private UserInfo user;
  
  /**
   * 阅读状态 1为已读0为未读
   */
  private NotificationState state;
  
  public UserNotification getNotification() {
    return notification;
  }
  
  public void setNotification(UserNotification notification) {
    this.notification = notification;
  }
  
  public UserInfo getUser() {
    return user;
  }
  
  public void setUser(UserInfo user) {
    this.user = user;
  }
  
  public NotificationState getState() {
    return state;
  }
  
  public void setState(NotificationState state) {
    this.state = state;
  }
  
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy