Resolved persistence issue by using native hibernate not entity manager