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

com.haoxuer.discover.weibo.data.entity.WeiBoChannel Maven / Gradle / Ivy

package com.haoxuer.discover.weibo.data.entity;

import com.haoxuer.discover.data.annotations.FormAnnotation;
import com.haoxuer.discover.data.entity.LongEntity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@FormAnnotation(title = "主题的频道",add = "添加主题的频道",list = "主题的频道",update = "更新主题的频道")
@Entity
@Table(name = "weibo_content_channel")
public class WeiBoChannel extends LongEntity {

  /**
   * 主题
   */
  @ManyToOne(fetch = FetchType.LAZY)
  private WeiBo weiBo;

  /**
   * 频道
   */
  @ManyToOne(fetch = FetchType.LAZY)
  private Channel channel;

  public WeiBo getWeiBo() {
    return weiBo;
  }

  public void setWeiBo(WeiBo weiBo) {
    this.weiBo = weiBo;
  }

  public Channel getChannel() {
    return channel;
  }

  public void setChannel(Channel channel) {
    this.channel = channel;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy