Well you would create a Country object, map it to the country table, then in a DAO layer object you would create either a Criteria, or Query, or SQLQuery object querying fo rthe data. Since it is a single table and you want all the records you can do one of the following two
Criteria criteria = new Criteria(Country.class); List<Country> countries = criteria.list();
or
Query query = new Query("from Country"); List<Country> countries = query.list();
Both will run the same query to the database and return all the Countries.
Hope that helps
Mark
Post by:autobot
machines help you to do more, but experience less. Experience this tiny ad:
a bit of art, as a gift, the permaculture playing cards