<class>org.collectionspace.services.authorization.PermissionRoleRel</class>\r
<class>org.collectionspace.services.authorization.Role</class>\r
<class>org.collectionspace.services.authorization.AccountRoleRel</class>\r
+ \r
+ <!-- \r
<properties>\r
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>\r
<property name="hibernate.max_fetch_depth" value="3"/>\r
+ --> \r
<!-- Until our JNDI issue with Nuxeo is resolved, we have to use these JDBC properties rather than a datasource -->\r
+ <!-- \r
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>\r
<property name="hibernate.connection.username" value="postgres"/>\r
<property name="hibernate.connection.password" value="pgSEE^quell"/>\r
<property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/cspace"/>\r
- \r
+ -->\r
+ <!--property name="hibernate.hbm2ddl.auto" value="create-drop"/-->\r
+ <!--\r
+ </properties>\r
+ -->\r
+\r
+ <properties>\r
+ <property name="hibernate.dialect" value="${db.dialect}"/>\r
+ <property name="hibernate.max_fetch_depth" value="3"/>\r
+ <!-- Until our JNDI issue with Nuxeo is resolved, we have to use these JDBC properties rather than a datasource -->\r
+ <property name="hibernate.connection.driver_class" value="${db.jdbc.driver.class}"/>\r
+ <property name="hibernate.connection.username" value="${db.user}"/>\r
+ <property name="hibernate.connection.password" value="${db.user.password}"/>\r
+ <property name="hibernate.connection.url" value="jdbc:${db}://localhost:${db.port}/cspace"/>\r
<!--property name="hibernate.hbm2ddl.auto" value="create-drop"/-->\r
</properties>\r
\r
</bean>
-->
+ <!--
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="org.postgresql.Driver"/>
<property name="url" value="jdbc:postgresql://localhost:5432/cspace"/>
<property name="username" value="postgres"/>
<property name="password" value="pgSEE^quell"/>
+ </bean>
+ -->
+
+ <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
+ <property name="driverClassName" value="${db.jdbc.driver.class}"/>
+ <property name="url" value="jdbc:${db}://localhost:${db.port}/cspace"/>
+ <property name="username" value="${db.user}"/>
+ <property name="password" value="${db.user.password}"/>
</bean>
<bean id="lookupStrategy" class="org.springframework.security.acls.jdbc.BasicLookupStrategy">