`JdbcMappingContext` sets the SimpleTypeHolder to `JdbcSimpleTypeHolder.HOLDER` by default.
Fixing test failures where properties of type `UUID` were considered an entity by the `MappingContext`.
This in turn triggered failures when it tried to make fields of `UUID` accessible.
Removed the `UUID` field from a test entity in SD Relational, since `UUID` is not a simple type for Relational, nor a proper entity.
Replaced `@PostConstruct` with `InitializingBean` in test data source conifgurations in order avoid the requirement of importing javax.annotation-api.
Closes#975
@ -46,6 +46,7 @@ public class JdbcMappingContext extends RelationalMappingContext {
@@ -46,6 +46,7 @@ public class JdbcMappingContext extends RelationalMappingContext {
*/
publicJdbcMappingContext(){
super();
setSimpleTypeHolder(JdbcSimpleTypes.HOLDER);
}
/**
@ -55,6 +56,7 @@ public class JdbcMappingContext extends RelationalMappingContext {
@@ -55,6 +56,7 @@ public class JdbcMappingContext extends RelationalMappingContext {
@ -93,6 +108,25 @@ public class AbstractJdbcConfigurationIntegrationTests {
@@ -93,6 +108,25 @@ public class AbstractJdbcConfigurationIntegrationTests {
@ -61,9 +59,12 @@ public class BasicRelationalPersistentPropertyUnitTests {
@@ -61,9 +59,12 @@ public class BasicRelationalPersistentPropertyUnitTests {
PersistentPropertyPath<RelationalPersistentProperty>path=context.findPersistentPropertyPaths(DummyEntity.class,p->p.getName().equals("someList")).getFirst().orElseThrow(()->newAssertionFailedError("Couldn't find path for 'someList'"));
@ -127,7 +128,6 @@ public class BasicRelationalPersistentPropertyUnitTests {
@@ -127,7 +128,6 @@ public class BasicRelationalPersistentPropertyUnitTests {
softly.assertAll();
}
@Data
@SuppressWarnings("unused")
privatestaticclassDummyEntity{
@ -136,7 +136,6 @@ public class BasicRelationalPersistentPropertyUnitTests {
@@ -136,7 +136,6 @@ public class BasicRelationalPersistentPropertyUnitTests {