dependency breaks entitymanager loading