working persistence.xml with authorization.