//调用hibernate底层的删除方法如下,只有调用这个方法才可以级联删除,自己写的sql语句是不能级联删除的
@OneToMany(mappedBy = "vesselArea", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private Set<AreaEvent> areaEvents;[size=medium][size=xx-small][/size][/size]
@OneToMany(mappedBy = "vesselArea", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private Set<AreaEvent> areaEvents;[size=medium][size=xx-small][/size][/size]