BLasan commented on a change in pull request #1811:
URL: https://github.com/apache/fineract/pull/1811#discussion_r748740660



##########
File path: 
fineract-provider/src/main/java/org/apache/fineract/portfolio/creditscorecard/domain/CreditScorecardFeature.java
##########
@@ -0,0 +1,166 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, 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.
+ */
+package org.apache.fineract.portfolio.creditscorecard.domain;
+
+import java.io.Serializable;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Table;
+import org.apache.fineract.infrastructure.core.api.JsonCommand;
+import org.apache.fineract.infrastructure.core.data.EnumOptionData;
+import 
org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
+import 
org.apache.fineract.portfolio.creditscorecard.data.CreditScorecardFeatureData;
+import 
org.apache.fineract.portfolio.creditscorecard.service.CreditScorecardEnumerations;
+
+@Entity
+@Table(name = "m_credit_scorecard_feature")
+public class CreditScorecardFeature extends AbstractPersistableCustom 
implements Serializable {
+
+    @Column(name = "name", length = 100, unique = true, nullable = false)
+    private String name;
+
+    @Column(name = "value_type_enum", nullable = false)
+    private Integer valueType;
+
+    @Column(name = "data_type_enum", nullable = false)
+    private Integer dataType;
+
+    @Column(name = "category_enum", nullable = false)
+    private Integer category;
+
+    @Column(name = "is_active", nullable = false)
+    private Boolean active = false;
+
+    @Column(name = "is_deleted", nullable = false)
+    private boolean deleted = false;
+
+    public CreditScorecardFeature() {
+        //
+    }
+
+    public CreditScorecardFeature(String name, 
org.apache.fineract.portfolio.creditscorecard.domain.FeatureValueType valueType,
+            
org.apache.fineract.portfolio.creditscorecard.domain.FeatureDataType dataType,
+            
org.apache.fineract.portfolio.creditscorecard.domain.FeatureCategory category, 
Boolean active) {
+        this.name = name;
+        this.valueType = valueType.getValue();
+        this.dataType = dataType.getValue();
+        this.category = category.getValue();
+        this.active = active;
+    }
+
+    public static CreditScorecardFeature fromJson(JsonCommand command) {
+        final String name = command.stringValueOfParameterNamed("name");
+        final 
org.apache.fineract.portfolio.creditscorecard.domain.FeatureValueType valueType 
= org.apache.fineract.portfolio.creditscorecard.domain.FeatureValueType

Review comment:
       Here too




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to