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

com.haoxuer.discover.team.data.entity.Team Maven / Gradle / Ivy

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

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

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.List;


@FormAnnotation(title = "团队", add = "添加团队", list = "任务团队", update = "更新团队")
@Entity
@Table(name = "bs_team")
public class Team extends AbstractEntity {

  /**
   * 团队介绍
   */
  private String name;

  /**
   * 团队logo
   */
  private String icon;


  /**
   * 团队描述
   */
  private String note;

  @OneToMany(fetch = FetchType.LAZY,mappedBy = "team")
  private List members;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public List getMembers() {
    return members;
  }

  public void setMembers(List members) {
    this.members = members;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy