#72 - Improved mapping discovery in AnnotationMappingDiscoverer.

AnnotationMappingDiscoverer now returns a polished mapping in case the type mapping consists of a plain slash only.
This commit is contained in:
Oliver Gierke
2013-05-27 13:51:44 +02:00
parent 45c05a3203
commit a46e662632
2 changed files with 15 additions and 1 deletions

View File

@@ -93,7 +93,7 @@ public class AnnotationMappingDiscoverer implements MappingDiscoverer {
return typeMapping;
}
return typeMapping == null ? mapping[0] : typeMapping + mapping[0];
return typeMapping == null || "/".equals(typeMapping) ? mapping[0] : typeMapping + mapping[0];
}
private String[] getMappingFrom(Annotation annotation) {