working persistence.xml with authorization.
[photos] / src / main /
drwxr-xr-x   ..
drwxr-xr-x - java
drwxr-xr-x - webapp