mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-17 14:21:39 +00:00
Fixed permissions patch. Split hibernate and cache configuration property files
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2261 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
4
config/alfresco/domain/cache-strategies.properties
Normal file
4
config/alfresco/domain/cache-strategies.properties
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#
|
||||||
|
# The cache strategy
|
||||||
|
#
|
||||||
|
cache.strategy=read-write
|
@@ -12,8 +12,3 @@ hibernate.cache.use_second_level_cache=true
|
|||||||
hibernate.default_batch_fetch_size=1
|
hibernate.default_batch_fetch_size=1
|
||||||
hibernate.jdbc.batch_size=32
|
hibernate.jdbc.batch_size=32
|
||||||
hibernate.connection.release_mode=auto
|
hibernate.connection.release_mode=auto
|
||||||
|
|
||||||
#
|
|
||||||
# The cache strategy
|
|
||||||
#
|
|
||||||
cache.strategy=read-write
|
|
||||||
|
@@ -12,13 +12,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
<!-- load hibernate entity cache strategies -->
|
<!-- load hibernate entity cache strategies -->
|
||||||
<bean id="hibernateConfigPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
<bean id="cacheStrategiesPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||||
<property name="ignoreUnresolvablePlaceholders">
|
<property name="ignoreUnresolvablePlaceholders">
|
||||||
<value>true</value>
|
<value>true</value>
|
||||||
</property>
|
</property>
|
||||||
<property name="locations">
|
<property name="locations">
|
||||||
<list>
|
<list>
|
||||||
<value>classpath:alfresco/domain/hibernate-cfg.properties</value>
|
<value>classpath:alfresco/domain/cache-strategies.properties</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
@@ -103,6 +103,9 @@ public class PermissionDataPatch extends AbstractPatch
|
|||||||
{
|
{
|
||||||
public Object doInHibernate(Session session)
|
public Object doInHibernate(Session session)
|
||||||
{
|
{
|
||||||
|
// flush any outstanding entities
|
||||||
|
session.flush();
|
||||||
|
|
||||||
Query query = session.getNamedQuery(HibernateHelper.QUERY_UPDATE_PERM_ENTRY_TYPENAME);
|
Query query = session.getNamedQuery(HibernateHelper.QUERY_UPDATE_PERM_ENTRY_TYPENAME);
|
||||||
query.setString("typeNameNew", TYPE_NAME_NEW)
|
query.setString("typeNameNew", TYPE_NAME_NEW)
|
||||||
.setString("typeNameOld", TYPE_NAME_OLD);
|
.setString("typeNameOld", TYPE_NAME_OLD);
|
||||||
|
Reference in New Issue
Block a user