From 93f63a09dce9d4c8bc9f9be9b580f5f1182e0f0e Mon Sep 17 00:00:00 2001 From: michaelpede Date: Fri, 9 Apr 2021 14:47:51 -0700 Subject: [PATCH] Definition File more Template-ready --- .../data/definition/LookupDefinition.java | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/reso/service/data/definition/LookupDefinition.java b/src/main/java/org/reso/service/data/definition/LookupDefinition.java index 1e3a987..db53043 100644 --- a/src/main/java/org/reso/service/data/definition/LookupDefinition.java +++ b/src/main/java/org/reso/service/data/definition/LookupDefinition.java @@ -32,16 +32,27 @@ public class LookupDefinition extends ResourceInfo } ArrayList list = new ArrayList(); - FieldInfo fieldInfo = new FieldInfo("LookupKey", EdmPrimitiveTypeKind.String.getFullQualifiedName()); + LookupDefinition.fieldList = list; + FieldInfo fieldInfo = null; + + fieldInfo = new FieldInfo("LookupKey", EdmPrimitiveTypeKind.String.getFullQualifiedName()); fieldInfo.addAnnotation("Lookup Key Field", "RESO.OData.Metadata.StandardName"); list.add(fieldInfo); - list.add(new FieldInfo("LookupName", EdmPrimitiveTypeKind.String.getFullQualifiedName())); - list.add(new FieldInfo("LookupValue", EdmPrimitiveTypeKind.String.getFullQualifiedName())); - list.add(new FieldInfo("StandardLookupValue", EdmPrimitiveTypeKind.String.getFullQualifiedName())); - list.add(new FieldInfo("LegacyOdataValue", EdmPrimitiveTypeKind.String.getFullQualifiedName())); - list.add(new FieldInfo("ModificationTimestamp", EdmPrimitiveTypeKind.DateTimeOffset.getFullQualifiedName())); - LookupDefinition.fieldList = list; + fieldInfo = new FieldInfo("LookupName", EdmPrimitiveTypeKind.String.getFullQualifiedName()); + list.add( fieldInfo); + + fieldInfo = new FieldInfo("LookupValue", EdmPrimitiveTypeKind.String.getFullQualifiedName()); + list.add(fieldInfo); + + fieldInfo = new FieldInfo("StandardLookupValue", EdmPrimitiveTypeKind.String.getFullQualifiedName()); + list.add(fieldInfo); + + fieldInfo = new FieldInfo("LegacyOdataValue", EdmPrimitiveTypeKind.String.getFullQualifiedName()); + list.add(fieldInfo); + + fieldInfo = new FieldInfo("ModificationTimestamp", EdmPrimitiveTypeKind.DateTimeOffset.getFullQualifiedName()); + list.add(fieldInfo); return LookupDefinition.fieldList; }