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
This commit is contained in:
committed by
Jens Schauder
parent
940062816d
commit
6ae53f5577
@@ -36,11 +36,10 @@ import org.springframework.util.StringUtils;
|
||||
* @author Kazuki Shimizu
|
||||
* @author Oliver Gierke
|
||||
* @author Mark Paluch
|
||||
* @author Paul-Christian Volkmer
|
||||
*/
|
||||
public class JdbcMappingContext extends RelationalMappingContext {
|
||||
|
||||
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";
|
||||
|
||||
/**
|
||||
* Creates a new {@link JdbcMappingContext}.
|
||||
*/
|
||||
@@ -59,19 +58,6 @@ public class JdbcMappingContext extends RelationalMappingContext {
|
||||
setSimpleTypeHolder(JdbcSimpleTypes.HOLDER);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected <T> RelationalPersistentEntity<T> createPersistentEntity(TypeInformation<T> typeInformation) {
|
||||
|
||||
RelationalPersistentEntity<T> entity = super.createPersistentEntity(typeInformation);
|
||||
InstanceCreatorMetadata<RelationalPersistentProperty> creator = entity.getInstanceCreatorMetadata();
|
||||
|
||||
if (creator == null) {
|
||||
return entity;
|
||||
}
|
||||
|
||||
return entity;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected RelationalPersistentProperty createPersistentProperty(Property property,
|
||||
RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) {
|
||||
|
||||
Reference in New Issue
Block a user