Quite simple really. I don't even want to save the entities from the original query.
Query query = em.createNamedQuery("from ViewLocationArea order by town, rank,
area");
| List<ViewLocationArea> results = query.getResultList();
| List<SelectItem> locations = new ArrayList<SelectItem>();
| for(int i=0;i< results.size();i++){
| //Traverses the List and creates SelectItems for "locations" list
| ...
| }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982693#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...