query.append("companyId ASC").append(", ");
query.append("className ASC").append(", ");
query.append("classPK ASC").append(", ");
query.append("priority ASC");
Iterator itr = session.find(query.toString()).iterator();
List list = new ArrayList();
while (itr.hasNext()) {
AddressHBM addressHBM = (AddressHBM)itr.next();
list.add(AddressHBMUtil.model(addressHBM));