HHH-16687 Remove unused internal interface ComparableEntityAction

This commit is contained in:
Sanne Grinovero 2023-05-23 22:28:35 +01:00 committed by Sanne Grinovero
parent c9457db5b6
commit 21b1c71947
2 changed files with 2 additions and 19 deletions

View File

@ -1,17 +0,0 @@
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.action.internal;
/**
* With this interface we can compare entity actions in the queue
* even if the implementation doesn't extend {@link EntityAction}.
*/
public interface ComparableEntityAction extends Comparable<ComparableEntityAction> {
String getEntityName();
Object getId();
}

View File

@ -26,7 +26,7 @@ import org.hibernate.pretty.MessageHelper;
* @author Gavin King
*/
public abstract class EntityAction
implements ComparableEntityAction, Executable, Serializable, AfterTransactionCompletionProcess {
implements Comparable<EntityAction>, Executable, Serializable, AfterTransactionCompletionProcess {
private final String entityName;
private final Object id;
@ -151,7 +151,7 @@ public abstract class EntityAction
}
@Override
public int compareTo(ComparableEntityAction action) {
public int compareTo(EntityAction action) {
//sort first by entity name
final int roleComparison = entityName.compareTo( action.getEntityName() );
return roleComparison != 0