我有两节课:
public class Tag {
@Id
public int id;
@ManyToMany(cascade=CascadeType.ALL)
public static List<Article> articles;
public static Finder<Long, Tag> find = new Finder<Long, Tag>(Long.class, Tag.class);
}
public class Article {
@Id
public int id;
@Constraints.Required
public String title;
@ManyToMany(cascade=CascadeType.ALL)
public static List<Tag> tags;
public static Finder<Long, Article> find = new Finder<Long, Article>(Long.class, Article.class);
我需要获取文章作为参数并返回与本文相关的标签列表的功能