DATAJDBC-506 - Fix some typos in code and documentation.
Original pull request: #200.
This commit is contained in:
committed by
Jens Schauder
parent
b24a8244f2
commit
485ef495a4
2
CI.adoc
2
CI.adoc
@@ -8,7 +8,7 @@ image:https://jenkins.spring.io/buildStatus/icon?job=spring-data-jdbc%2F1.0.x&su
|
||||
Since this pipeline is purely Docker-based, it's easy to:
|
||||
|
||||
* Debug what went wrong on your local machine.
|
||||
* Test out a a tweak to your `test.sh` script before sending it out.
|
||||
* Test out a tweak to your `test.sh` script before sending it out.
|
||||
* Experiment against a new image before submitting your pull request.
|
||||
|
||||
All of these use cases are great reasons to essentially run what the CI server does on your local machine.
|
||||
|
||||
@@ -118,7 +118,7 @@ public interface DataAccessStrategy {
|
||||
* passed in matches the number of entities returned.
|
||||
*
|
||||
* @param ids the Ids of the entities to load. Must not be {@code null}.
|
||||
* @param domainType the type of entities to laod. Must not be {@code null}.
|
||||
* @param domainType the type of entities to load. Must not be {@code null}.
|
||||
* @param <T> type of entities to load.
|
||||
* @return the loaded entities. Guaranteed to be not {@code null}.
|
||||
*/
|
||||
|
||||
@@ -54,7 +54,7 @@ class IterableOfEntryToMapConverter implements ConditionalConverter, Converter<I
|
||||
|
||||
/**
|
||||
* Tries to determine if the {@literal sourceType} can be converted to a {@link Map}. If this can not be determined,
|
||||
* because the sourceTyppe does not contain information about the element type it returns {@literal true}.
|
||||
* because the sourceType does not contain information about the element type it returns {@literal true}.
|
||||
*
|
||||
* @param sourceType {@link TypeDescriptor} to convert from.
|
||||
* @param targetType {@link TypeDescriptor} to convert to.
|
||||
|
||||
@@ -31,14 +31,14 @@ public class MyBatisContext {
|
||||
private final Object id;
|
||||
private final Object instance;
|
||||
private final Class domainType;
|
||||
private final Map<String, Object> additonalValues;
|
||||
private final Map<String, Object> additionalValues;
|
||||
|
||||
public MyBatisContext(@Nullable Object id, @Nullable Object instance, Class domainType, Map<String, Object> additonalValues) {
|
||||
public MyBatisContext(@Nullable Object id, @Nullable Object instance, Class domainType, Map<String, Object> additionalValues) {
|
||||
|
||||
this.id = id;
|
||||
this.instance = instance;
|
||||
this.domainType = domainType;
|
||||
this.additonalValues = additonalValues;
|
||||
this.additionalValues = additionalValues;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -79,6 +79,6 @@ public class MyBatisContext {
|
||||
*/
|
||||
@Nullable
|
||||
public Object get(String key) {
|
||||
return additonalValues.get(key);
|
||||
return additionalValues.get(key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ public class ConfigurableRowMapperMap implements RowMapperMap {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returs a {@link RowMapper} for the given type if such a {@link RowMapper} is present. If an exact match is found
|
||||
* Returns a {@link RowMapper} for the given type if such a {@link RowMapper} is present. If an exact match is found
|
||||
* that is returned. If not a {@link RowMapper} is returned that produces subtypes of the requested type. If no such
|
||||
* {@link RowMapper} is found the method returns {@code null}.
|
||||
*
|
||||
|
||||
@@ -171,7 +171,7 @@ public class QueryAnnotationHsqlIntegrationTests {
|
||||
}
|
||||
|
||||
@Test // DATAJDBC-175
|
||||
public void executeCustomQueryWithReturnTypeIsNubmer() {
|
||||
public void executeCustomQueryWithReturnTypeIsNumber() {
|
||||
|
||||
repository.save(dummyEntity("aaa"));
|
||||
repository.save(dummyEntity("bbb"));
|
||||
@@ -199,7 +199,7 @@ public class QueryAnnotationHsqlIntegrationTests {
|
||||
public void executeCustomQueryWithReturnTypeIsDate() {
|
||||
|
||||
// Since Timestamp extends Date the repository returns the Timestamp as it comes from the database.
|
||||
// Trying to compare that to an actual Date results in non determistic results, so we have to use an actual
|
||||
// Trying to compare that to an actual Date results in non deterministic results, so we have to use an actual
|
||||
// Timestamp.
|
||||
Date now = new Timestamp(System.currentTimeMillis());
|
||||
assertThat(repository.nowWithDate()).isAfterOrEqualsTo(now);
|
||||
|
||||
@@ -81,7 +81,7 @@ public class JdbcRepositoryFactoryBeanUnitTests {
|
||||
}
|
||||
|
||||
@Test(expected = IllegalStateException.class) // DATAJDBC-155
|
||||
public void afterPropertiesThowsExceptionWhenNoMappingContextSet() {
|
||||
public void afterPropertiesThrowsExceptionWhenNoMappingContextSet() {
|
||||
|
||||
factoryBean.setMappingContext(null);
|
||||
factoryBean.setApplicationEventPublisher(publisher);
|
||||
|
||||
Reference in New Issue
Block a user