Update MetadataParser.java

Updated to Set Nullable attribute to "true" as default value for a Navigation property that is not a collection or when a value is not provided
This commit is contained in:
nvsreddy 2016-07-21 15:52:54 -05:00 committed by GitHub
parent ec009caa64
commit 125a53a09e
1 changed files with 1 additions and 1 deletions

View File

@ -915,7 +915,7 @@ public class MetadataParser {
property.setName(attr(element, "Name"));
property.setType(readType(element));
property.setCollection(isCollectionType(element));
property.setNullable(Boolean.parseBoolean(attr(element, "Nullable")));
property.setNullable(Boolean.parseBoolean(attr(element, "Nullable") == null ? "true" : attr(element, "Nullable")));
property.setPartner(attr(element, "Partner"));
property.setContainsTarget(Boolean.parseBoolean(attr(element, "ContainsTarget")));