Done issues

InterceptorList.postFlush calls preFlush instead of postFlush
HSHARDS-56
ShardResolutionStrategyImpl needs equals() and hashCode()
HSHARDS-51
Hibernate Shards not applying setMaxResults as a SQL LIMIT
HSHARDS-52
User guide incorrectly states that we don't support base type ids
HSHARDS-41
NullPointerException in disconnect method
HSHARDS-48
ShardedSessionImpl.isOpen() is inconsistent with SessionImpl.isOpen()
HSHARDS-46
Investigate why ShardedSession extends org.hibernate.classic.Session instead of org.hibernate.Session
HSHARDS-42
Can not sort on fields with private getters
HSHARDS-43
Add ShardAware interface and related exit strategy logic
HSHARDS-9
Support average for Criteria
HSHARDS-39
ShardedSessionImpl.createFilter(Object collection, String queryString);
HSHARDS-30
Support Hibernate Annotations
HSHARDS-36
ShardedSessionImpl.merge(String entityName, Object obj);
HSHARDS-21
ShardedSessionImpl.merge(Object obj);
HSHARDS-20
Support different second level cache prefixes across shards
HSHARDS-38
Each Shard configuration should support the DataSource argument
HSHARDS-37
ShardedSessionImpl.replicate(String entityName, Object obj, ReplicationMode replicationMode);
HSHARDS-19
ShardedSessionImpl.replicate(Object obj, ReplicationMode replicationMode);
HSHARDS-18
Hibernate NetBeans plugin throws an exception when creating table
HSHARDS-35
ShardedSessionImpl.refresh(Object obj);
HSHARDS-27
ShardedSessionImpl.reconnect();
HSHARDS-34
ShardedSessionImpl.disconnect();
HSHARDS-33
ShardedSessionImpl.getSessionStatistics();
HSHARDS-32
ShardedSessionImpl.persist(String entityName, Object obj);
HSHARDS-23
ShardedSessionImpl.persist(Object obj);
HSHARDS-22
ShardedSessionImpl.load(Object object, Serializable id);
HSHARDS-17
ShardedSessionImpl.load(String entityName, Serializable id);
HSHARDS-16
ShardedSessionImpl.load(Class theClass, Serializable id);
HSHARDS-15
ShardedSessionImpl.load(String entityName, Serializable id, LockMode lockMode);
HSHARDS-14
ShardedSessionImpl.load(Class theClass, Serializable id, LockMode lockMode);
HSHARDS-13
ShardedSessionImpl.connection()
HSHARDS-12
ShardedSessionImpl.refresh(Object obj, LockMode lockMode);
HSHARDS-26
ShardedSessionImpl.lock(String entityName, Object obj, LockMode lockMode);
HSHARDS-25
ShardedSessionImpl.lock(Object obj, LockMode lockMode);
HSHARDS-24
ShardedSessionImpl.getEntityName(Object object);
HSHARDS-31
ShardedSessionImpl.getCurrentLockMode(Object obj);
HSHARDS-28
example weather.hbm.xml is wrong
HSHARDS-10
Shard configuration file names in documentation not consistant
HSHARDS-6
ConcatenateListsExitStrategy has null shard when using SequentialShardAccessStrategy
HSHARDS-8
Syntax errors in documentation code for Obtaining a ShardedSessionFactory
HSHARDS-5
Typo
HSHARDS-7
setMaxResults method of Query is behaving wrong
HSHARDS-3
Use the overloaded version of Class.forName() to prevent loading of unnecessary classes
HSHARDS-2
issue 1 of 43

InterceptorList.postFlush calls preFlush instead of postFlush

Description

below is a patch to fix this issue.

Index: src/java/org/hibernate/shards/util/InterceptorList.java
===================================================================
— src/java/org/hibernate/shards/util/InterceptorList.java (revision 15807)
+++ src/java/org/hibernate/shards/util/InterceptorList.java (working copy)
@@ -144,7 +144,7 @@

public void postFlush(Iterator entities) throws CallbackException {
for(Interceptor interceptor : interceptors) {

  • interceptor.preFlush(entities);
    + interceptor.postFlush(entities);
    }
    }

Environment

None

Status

Assignee

Max Ross

Reporter

Torbjørn Køhler

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Affects versions

Priority

Trivial
Configure