Added some more logging to assist with debugging
parent
13cead79e9
commit
6e1f390a34
|
|
@ -161,8 +161,15 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
||||||
@Transactional(Transactional.TxType.REQUIRES_NEW)
|
@Transactional(Transactional.TxType.REQUIRES_NEW)
|
||||||
public void importEntity(final String data) throws ImportExpection {
|
public void importEntity(final String data) throws ImportExpection {
|
||||||
try {
|
try {
|
||||||
final T importedEntity = objectMapper.readValue(data,
|
final T importedEntity = objectMapper.readValue(
|
||||||
getEntityClass());
|
data,
|
||||||
|
getEntityClass()
|
||||||
|
);
|
||||||
|
LOGGER.info(
|
||||||
|
"Importing entity identified by UUID {} of type {}...",
|
||||||
|
importedEntity.getUuid(),
|
||||||
|
getEntityClass().getName()
|
||||||
|
);
|
||||||
final Optional<T> existingEntityResult = findExistingEntity(
|
final Optional<T> existingEntityResult = findExistingEntity(
|
||||||
importedEntity.getUuid()
|
importedEntity.getUuid()
|
||||||
);
|
);
|
||||||
|
|
@ -268,7 +275,7 @@ public abstract class AbstractEntityImExporter<T extends Exportable> {
|
||||||
/**
|
/**
|
||||||
* Reloads the entity to export. Entities become detacted for several
|
* Reloads the entity to export. Entities become detacted for several
|
||||||
* reasons before they are passed to the null null null null null null null
|
* reasons before they are passed to the null null null null null null null
|
||||||
* null null null null null null null null null {@link #exportEntity(org.libreccm.imexport.Exportable) method. The
|
* null null null null null null null null null null null {@link #exportEntity(org.libreccm.imexport.Exportable) method. The
|
||||||
* implementation of this should reload the passed entity.
|
* implementation of this should reload the passed entity.
|
||||||
*
|
*
|
||||||
* @param entity The entity to reload.
|
* @param entity The entity to reload.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue