Use hibernate mapping file (mappings.hbm.xml).