entitymanagerfactory/sessionfactory problem fixed