地图<entity1,list <entity2 =“”>&gt;的Hibernate映射

时间:2015-09-03 06:59:59

标签: hibernate list dictionary orm mapping

我不知道如何映射?!在这里,我的课程..如果没有手动填写地图,它甚至可能吗?

public class Configuration {
  @Id
  private long id;
  ??
  private Map<Room, List<Label>> roomLabelMapping;
}

 public class Label {
   @Id
   private long labelId;
   ??
 }

 public class Room {
   @Id
   private String roomMail;
   @ManyToOne
   private Configuration configuration;
 }

0 个答案:

没有答案