DATAJDBC-390 - Polishing.

Slightly tweak Javadoc.

Original pull request: #159.
This commit is contained in:
Mark Paluch
2019-07-15 11:32:33 +02:00
parent 7089e077d5
commit d143d8fe71
2 changed files with 8 additions and 5 deletions

View File

@@ -134,7 +134,7 @@ public class EnableJdbcAuditingHsqlIntegrationTests {
entity = repository.save(entity);
assertThat(repository.findById(entity.id).get()).isEqualTo(entity);
assertThat(repository.findById(entity.id)).contains(entity);
});
}
@@ -192,7 +192,6 @@ public class EnableJdbcAuditingHsqlIntegrationTests {
AuditingAnnotatedDummyEntity entity = repository.save(new AuditingAnnotatedDummyEntity());
assertThat(entity.id).isNotNull();
});
}

View File

@@ -35,8 +35,8 @@ import org.springframework.data.relational.core.mapping.event.BeforeSaveEvent;
public class RelationalAuditingEventListener implements ApplicationListener<BeforeSaveEvent>, Ordered {
/**
* The order used for this {@link org.springframework.context.event.EventListener}. This ensures that it will run
* before other listeners without a specified priority.
* The order used for this {@link org.springframework.context.event.EventListener}. Ordering ensures that this
* {@link ApplicationListener} will run before other listeners without a specified priority.
*
* @see org.springframework.core.annotation.Order
* @see Ordered
@@ -47,7 +47,7 @@ public class RelationalAuditingEventListener implements ApplicationListener<Befo
/**
* {@inheritDoc}
*
*
* @param event a notification event for indicating before save
*/
@Override
@@ -55,6 +55,10 @@ public class RelationalAuditingEventListener implements ApplicationListener<Befo
handler.markAudited(event.getEntity());
}
/*
* (non-Javadoc)
* @see org.springframework.core.Ordered#getOrder()
*/
@Override
public int getOrder() {
return AUDITING_ORDER;