hibernate注解排序@orderBy
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "province")
@OrderBy(clause = "cityId asc")
public Set getCities() {
return this.cities;
}
public void setCities(Set ci
原创
2013-05-06 02:56:49 ·
11087 阅读 ·
3 评论