Skip to content

Commit 6ae53f5

Browse files
pcvolkmerschauder
authored andcommitted
Remove redundant code
createPersistentEntity(..) effectively only calls the overriden method. It therefore can be deleted. Remove error message no longer used. Original pull request #1783
1 parent 9400628 commit 6ae53f5

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/mapping/JdbcMappingContext.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@
3636
* @author Kazuki Shimizu
3737
* @author Oliver Gierke
3838
* @author Mark Paluch
39+
* @author Paul-Christian Volkmer
3940
*/
4041
public class JdbcMappingContext extends RelationalMappingContext {
4142

42-
private static final String MISSING_PARAMETER_NAME = "A constructor parameter name must not be null to be used with Spring Data JDBC; Offending parameter: %s";
43-
4443
/**
4544
* Creates a new {@link JdbcMappingContext}.
4645
*/
@@ -59,19 +58,6 @@ public JdbcMappingContext(NamingStrategy namingStrategy) {
5958
setSimpleTypeHolder(JdbcSimpleTypes.HOLDER);
6059
}
6160

62-
@Override
63-
protected <T> RelationalPersistentEntity<T> createPersistentEntity(TypeInformation<T> typeInformation) {
64-
65-
RelationalPersistentEntity<T> entity = super.createPersistentEntity(typeInformation);
66-
InstanceCreatorMetadata<RelationalPersistentProperty> creator = entity.getInstanceCreatorMetadata();
67-
68-
if (creator == null) {
69-
return entity;
70-
}
71-
72-
return entity;
73-
}
74-
7561
@Override
7662
protected RelationalPersistentProperty createPersistentProperty(Property property,
7763
RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) {

0 commit comments

Comments
 (0)