You need to add this mapping file to hibernate.cfg.xml file otherwise the hibernate won't know about it