Working. Mapping was done using hibernate.cfg xml file