如何在hibernate中对这个bean进行注释?
@Entity
public class PerformanceValues implements Serializable{
private static final long serialVersionUID = 1234850675335166109L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
//key is mass, value is distance needed
private Map<Integer, Integer> massToDist;
}
每个performanceValues实体都有一个唯一的地图,每个地图只能与一个PerformanceValues相关(我猜这是一个oneToOne关系)
由于