#878 - @AttributeOverride (not wrapped in @AttributeOverrides) is not applied

This commit is contained in:
Rob Bygrave
2016-11-15 22:48:36 +13:00
parent d2b6d06da5
commit 632cf10096
5 changed files with 141 additions and 4 deletions
@@ -62,7 +62,13 @@ public abstract class AnnotationParser extends AnnotationBase {
propMap.put(propName, columnName);
}
prop.getDeployEmbedded().putAll(propMap);
}
AttributeOverride attrOverride = get(prop, AttributeOverride.class);
if (attrOverride != null) {
HashMap<String, String> propMap = new HashMap<>();
propMap.put(attrOverride.name(), attrOverride.column().name());
prop.getDeployEmbedded().putAll(propMap);
}