HHH-5816 Expose list of modified properties in PostUpdateEvent
This commit is contained in:
parent
0541cbf966
commit
20f8a8e2d3
|
@ -190,7 +190,8 @@ public final class EntityUpdateAction extends EntityAction {
|
|||
getInstance(),
|
||||
getId(),
|
||||
state,
|
||||
previousState,
|
||||
previousState,
|
||||
dirtyFields,
|
||||
getPersister(),
|
||||
(EventSource) getSession()
|
||||
);
|
||||
|
@ -208,7 +209,8 @@ public final class EntityUpdateAction extends EntityAction {
|
|||
getInstance(),
|
||||
getId(),
|
||||
state,
|
||||
previousState,
|
||||
previousState,
|
||||
dirtyFields,
|
||||
getPersister(),
|
||||
(EventSource) getSession()
|
||||
);
|
||||
|
|
|
@ -39,12 +39,15 @@ public class PostUpdateEvent extends AbstractEvent {
|
|||
private Object[] state;
|
||||
private Object[] oldState;
|
||||
private Serializable id;
|
||||
//list of dirty properties as computed by Hibernate during a FlushEntityEvent
|
||||
private final int[] dirtyProperties;
|
||||
|
||||
public PostUpdateEvent(
|
||||
Object entity,
|
||||
Serializable id,
|
||||
Object[] state,
|
||||
Object[] oldState,
|
||||
int[] dirtyProperties,
|
||||
EntityPersister persister,
|
||||
EventSource source
|
||||
) {
|
||||
|
@ -53,6 +56,7 @@ public class PostUpdateEvent extends AbstractEvent {
|
|||
this.id = id;
|
||||
this.state = state;
|
||||
this.oldState = oldState;
|
||||
this.dirtyProperties = dirtyProperties;
|
||||
this.persister = persister;
|
||||
}
|
||||
|
||||
|
@ -71,4 +75,8 @@ public class PostUpdateEvent extends AbstractEvent {
|
|||
public Object[] getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public int[] getDirtyProperties() {
|
||||
return dirtyProperties;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue