我有以下情况:
class GraphUser {
@Column(name="first_name")
private String firstName = "";
@Column(name="middle_name")
private String middleName = "";
@Column(name="last_name")
private String lastName = "";
@Column(name="start_point")
private String startPointId = "";
@ManyToMany(fetch = FetchType.EAGER, mappedBy = "points")
private HashMap<Point> points= new HashMap<Point>();
private Point startPoint = points.get(startPointId);
}
有什么方法可以强制休眠在创建 startPoint 属性之前获取 startPointId 点以获得正确的值?