DATAMONGO-633 - Upgraded to Querydsl 3.0.0.

Adapted custom APT serializer implementation to the new API.
This commit is contained in:
Oliver Gierke
2013-03-25 17:11:29 +01:00
parent e56a8597b8
commit 7a64766496
2 changed files with 3 additions and 2 deletions

View File

@@ -30,7 +30,7 @@
<properties>
<project.type>multi</project.type>
<dist.id>spring-data-mongodb</dist.id>
<springdata.commons>1.5.0.RELEASE</springdata.commons>
<springdata.commons>1.6.0.BUILD-SNAPSHOT</springdata.commons>
<mongo>2.10.1</mongo>
</properties>

View File

@@ -63,7 +63,8 @@ class SpringDataMongodbSerializer extends MongodbSerializer {
Path<?> parent = metadata.getParent();
MongoPersistentEntity<?> entity = mappingContext.getPersistentEntity(parent.getType());
MongoPersistentProperty property = entity.getPersistentProperty(metadata.getExpression().toString());
MongoPersistentProperty property = entity.getPersistentProperty(metadata.getName());
return property == null ? super.getKeyForPath(expr, metadata) : property.getFieldName();
}