remove sessionfactory and hbm.xml mapping ,
use annotation "entity" and jpa