HHH-18553 add a log message
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
342afd28d4
commit
edf813083e
|
@ -209,6 +209,7 @@ public class DefaultDeleteEventListener implements DeleteEventListener, Callback
|
|||
EntityKey key, Object version, EntityPersister persister, EventSource source) {
|
||||
final Object existingEntity = source.getPersistenceContextInternal().getEntity( key );
|
||||
if ( existingEntity != null ) {
|
||||
LOG.flushAndEvictOnRemove( key.getEntityName() );
|
||||
source.flush();
|
||||
if ( !persister.isVersioned()
|
||||
|| persister.getVersionType()
|
||||
|
|
|
@ -38,7 +38,6 @@ import org.hibernate.internal.CoreMessageLogger;
|
|||
import org.hibernate.loader.ast.spi.CascadingFetchProfile;
|
||||
import org.hibernate.persister.collection.CollectionPersister;
|
||||
import org.hibernate.persister.entity.EntityPersister;
|
||||
import org.hibernate.proxy.HibernateProxy;
|
||||
import org.hibernate.proxy.LazyInitializer;
|
||||
import org.hibernate.stat.spi.StatisticsImplementor;
|
||||
import org.hibernate.type.AnyType;
|
||||
|
|
|
@ -968,6 +968,12 @@ public interface CoreMessageLogger extends BasicLogger {
|
|||
|
||||
@LogMessage(level = DEBUG)
|
||||
@Message(value = "JDBCException was thrown for a transaction marked for rollback. " +
|
||||
" This is probably due to an operation failing fast due to the transaction being marked for rollback.")
|
||||
" This is probably due to an operation failing fast due to the transaction being marked for rollback.",
|
||||
id = 520)
|
||||
void jdbcExceptionThrownWithTransactionRolledBack(@Cause JDBCException e);
|
||||
|
||||
@LogMessage(level = DEBUG)
|
||||
@Message(value = "Flushing and evicting managed instance of type [%s] before removing detached instance with same id",
|
||||
id = 530)
|
||||
void flushAndEvictOnRemove(String entityName);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue