我想做这样的事情:
@Entity public class Bar {
@Id @GeneratedValue long id;
List<String> Foos
}
并让 Foos 保存在这样的表中:
foo_bars (
bar_id int,
foo varchar(64)
);
更新:
我知道如何映射其他实体,但在很多情况下它是矫枉过正的。如果不创建另一个实体或以某个 blob 列中的所有内容结束,我的建议似乎是不可能的。