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

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

There is a newer version: 3.3.18-20230117
Show newest version
package com.haoxuer.discover.weibo.data.entity;

import com.haoxuer.discover.config.data.entity.User;
import com.haoxuer.discover.data.annotations.FormAnnotation;
import com.haoxuer.discover.data.entity.AbstractEntity;
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_topic_channel")
public class TopicChannel extends LongEntity {

  /**
   * 主题
   */
  @ManyToOne(fetch = FetchType.LAZY)
  private Topic topic;

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

  public Topic getTopic() {
    return topic;
  }

  public void setTopic(Topic topic) {
    this.topic = topic;
  }

  public Channel getChannel() {
    return channel;
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy