I've been looking for a technique to map to constant tables or what we call 'code tables'. In our website we've got many tables that just list state constants, address types, etc... It would be great to easily map from my code column associated with my JavaBean to get the actual description value. I would rather not have to create beans for every code table.
OK. Well since this read only you safely create a view of all your config tables and map it to one Hibernate POJO. You probably then need to cache this object in you application. Something like a Singleton would do for that I'd imagine.