Merge "Add AaiSerializer"
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / dcae-analytics-tca-model / src / main / java / org / onap / dcae / analytics / tca / model / facade / Aai.java
index 796587b..46e71fb 100644 (file)
@@ -1,7 +1,8 @@
 /*
- * ================================================================================
+ * ==================================================================================
  * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
+ * Copyright (C) 2021 Samsung Electronics Intellectual Property. All rights reserved.
+ * ==================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- * ============LICENSE_END=========================================================
+ * ============LICENSE_END===========================================================
  *
  */
 
 package org.onap.dcae.analytics.tca.model.facade;
 
+import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
-
 import org.onap.dcae.analytics.model.common.BaseDynamicPropertiesProvider;
+import org.onap.dcae.analytics.tca.model.util.json.serializer.AaiSerializer;
 
 /**
  * @author Rajiv Singla
  */
 @Data
 @EqualsAndHashCode(callSuper = true)
+@JsonSerialize(using = AaiSerializer.class)
 public class Aai extends BaseDynamicPropertiesProvider implements TcaFacadeModel {
 
     private static final long serialVersionUID = 1L;