Is there a way to format this:
CriteriaQuery<Country> q = cb.createQuery(Country.class);
Root<Country> c = q.from(Country.class);
q.select(c.get("currency")).distinct(true);
So when all the NUMERIC currency elements are returned they look like:
12345 -> $12,345.00
123,45 -> $123.45
This way I don't hace to loop the resultset formating strings.