|
@@ -115,7 +115,7 @@ public abstract class GenericEntityService<E extends GenericEntity<PK>, PK>
|
|
|
|
|
|
if (eventPublisher != null && pushModifyEvent()) {
|
|
if (eventPublisher != null && pushModifyEvent()) {
|
|
E old = selectByPk(pk);
|
|
E old = selectByPk(pk);
|
|
- eventPublisher.publishEvent(new GenericsPayloadApplicationEvent<>(this, new EntityModifyEvent<>(old, entity), entityType));
|
|
+ eventPublisher.publishEvent(new GenericsPayloadApplicationEvent<>(this, new EntityModifyEvent<>(old, entity), getEntityType()));
|
|
}
|
|
}
|
|
return createUpdate(entity)
|
|
return createUpdate(entity)
|
|
|
|
|
|
@@ -175,7 +175,7 @@ public abstract class GenericEntityService<E extends GenericEntity<PK>, PK>
|
|
getDao().insert(entity);
|
|
getDao().insert(entity);
|
|
|
|
|
|
if (eventPublisher != null && pushCreatedEvent()) {
|
|
if (eventPublisher != null && pushCreatedEvent()) {
|
|
- eventPublisher.publishEvent(new GenericsPayloadApplicationEvent<>(this, new EntityCreatedEvent<>(entity), entityType));
|
|
+ eventPublisher.publishEvent(new GenericsPayloadApplicationEvent<>(this, new EntityCreatedEvent<>(entity), getEntityType()));
|
|
}
|
|
}
|
|
return entity.getId();
|
|
return entity.getId();
|
|
}
|
|
}
|