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#3982693
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982693
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user