solved id generator class through user.hbm.xml and now user register is working fine
commit by:kumar vayyala