xxxxxxxxxx
@Entity
@Table(name = "Employee")
public class EmployeeEntity implements Serializable {
//...
@OneToMany
@OrderBy("zipcode.zip ASC")
private Set<AddressEntity> addresses;
}
@Embeddable
public class AddressEntity {
//...
@Embedded protected Zipcode zipcode;
}
@Embeddable
public class Zipcode {
protected String zip;
protected String plusFour;
}