答案 0 :(得分:1)
npm似乎存在内存问题,请尝试清除缓存:
"Hello Async"
或
`npm cache clean`
如果是新项目,为什么不使用yarn? :)
答案 1 :(得分:1)
执行以下操作:
@Entity
public class Owner {
@Id
private long id;
@OneToMany(mappedBy="owner")
@MapKeyTemporal(TemporalType.TIMESTAMP)
private Map<Date, Car> carMap;
}
@Entity
public class Car {
@Id
private long id;
@ManyToOne
private Owner owner;
@Temporal(TemporalType.TIMESTAMP)
@Column(name="created_on")
private Calendar createdOn;
}