DATAGRAPH-311 : Reverted to using existing ClassTypeInformation getProperty method and not newly requested fromTypeOf method
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -33,7 +33,7 @@
|
||||
<project.type>multi</project.type>
|
||||
<dist.id>spring-data-neo4j</dist.id>
|
||||
|
||||
<springdata.commons>1.6.0.BUILD-SNAPSHOT</springdata.commons>
|
||||
<springdata.commons>1.6.0.RC1</springdata.commons>
|
||||
<neo4j.version>1.9</neo4j.version>
|
||||
|
||||
<neo4j.spatial.version>0.11-neo4j-1.9</neo4j.spatial.version>
|
||||
|
||||
@@ -38,8 +38,9 @@ public class ResultColumnValueExtractor {
|
||||
IllegalAccessException,
|
||||
InvocationTargetException {
|
||||
ResultColumn column = field.getAnnotation(ResultColumn.class);
|
||||
TypeInformation<?> returnType = ClassTypeInformation.fromTypeOf(field);
|
||||
return extractFromAccessibleObject(column,returnType);
|
||||
TypeInformation<?> classInfo = ClassTypeInformation.from(field.getDeclaringClass());
|
||||
TypeInformation<?> fieldInfo = classInfo.getProperty(field.getName());
|
||||
return extractFromAccessibleObject(column,fieldInfo);
|
||||
}
|
||||
|
||||
public Object extractFromMethod(Method method) throws ClassNotFoundException,
|
||||
|
||||
Reference in New Issue
Block a user