HHH-15581 Add ComparableEntityAction interface

This commit is contained in:
Davide D'Alto 2022-09-30 18:01:24 +01:00 committed by Davide D'Alto
parent 75765905cc
commit 76ba315194
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
/*
* 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();
}