just before adding authorization service.
[photos] / src / main / java / META-INF / persistence.xml
diff --git a/src/main/java/META-INF/persistence.xml b/src/main/java/META-INF/persistence.xml
new file mode 100644 (file)
index 0000000..0a4525e
--- /dev/null
@@ -0,0 +1,39 @@
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
+   version="2.0">
+   
+   <persistence-unit name="photos" transaction-type="JTA">
+      <jta-data-source>jdbc/PhotoXChange</jta-data-source>
+      
+      <!-- from the utiliities library --> 
+      <class>org.wamblee.security.authentication.User</class>
+      <class>org.wamblee.security.authentication.Group</class>
+      
+      <!--
+      <class>org.wamblee.security.authorization.AbstractUserCondition</class>
+      <class>org.wamblee.security.authorization.AnyUserCondition</class>
+      <class>org.wamblee.security.authorization.GroupUserCondition</class>
+      <class>org.wamblee.security.authorization.AbstractOperationCondition</class>
+      <class>org.wamblee.security.authorization.IsaOperationCondition</class>
+      <class>org.wamblee.security.authorization.AbstractPathCondition</class>
+      <class>org.wamblee.security.authorization.RegexpPathCondition</class>
+      <class>org.wamblee.security.authorization.StartsWithPathCondition</class>
+      
+      <class>org.wamblee.security.authorization.AbstractAuthorizationRule</class>
+      
+      
+      <class>org.wamblee.security.authorization.AbstractAuthorizationService</class>
+      <class>org.wamblee.security.authorization.DefaultAuthorizationService</class>
+      -->
+      
+      <!-- from the photo app, subclass of UrlAuthorizationRule --> 
+    
+      <!--
+      <class>org.wamblee.photos.authorizationrules.PhotoAuthorizationRule</class>
+      -->
+      
+      <exclude-unlisted-classes>true</exclude-unlisted-classes>
+    
+   </persistence-unit>
+</persistence>
\ No newline at end of file