Question - How can I get access to O/R mapping information such as table and column names at runtime?
Answer -
This information is available via the Configuration object. For example, entity mappings may be obtained using Configuration.getClassMapping(). It is even possible to manipulate this metamodel at runtime and then build a new SessionFactory.