JUnit/SONAR/Checkstyle in ONAP-REST
[policy/engine.git] / ONAP-REST / src / main / java / org / onap / policy / rest / jpa / DescriptiveScope.java
index aab9126..d571ed7 100644 (file)
@@ -3,13 +3,14 @@
  * ONAP-REST
  * ================================================================================
  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2019 Nordix Foundation.
  * ================================================================================
  * 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
- * 
+ *
  *      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.
@@ -38,10 +39,12 @@ import javax.persistence.Table;
 import javax.persistence.Temporal;
 import javax.persistence.TemporalType;
 
-
+/**
+ * The Class DescriptiveScope.
+ */
 @Entity
 @Table(name = "DescriptiveScope")
-@NamedQuery(name = "DescriptiveScope.findAll", query= "Select p from DescriptiveScope p")
+@NamedQuery(name = "DescriptiveScope.findAll", query = "Select p from DescriptiveScope p")
 public class DescriptiveScope implements Serializable {
     private static final long serialVersionUID = 1L;
     @Id
@@ -49,104 +52,191 @@ public class DescriptiveScope implements Serializable {
     @Column(name = "Id")
     private int id;
 
-    @Column(name="scopename", nullable=false)
+    @Column(name = "scopename", nullable = false)
     @OrderBy("asc")
     private String descriptiveScopeName;
 
-    @Column(name="description", nullable=true, length=2048)
+    @Column(name = "description", nullable = true, length = 2048)
     private String description;
 
-    @Column(name="search", nullable=true)
+    @Column(name = "search", nullable = true)
     @OrderBy("asc")
     private String search;
 
     @Temporal(TemporalType.TIMESTAMP)
-    @Column(name="created_date", updatable=false)
+    @Column(name = "created_date", updatable = false)
     private Date createdDate;
 
     @Temporal(TemporalType.TIMESTAMP)
-    @Column(name="modified_date", nullable=false)
+    @Column(name = "modified_date", nullable = false)
     private Date modifiedDate;
 
     @ManyToOne(optional = false)
-    @JoinColumn(name="created_by")
+    @JoinColumn(name = "created_by")
     private UserInfo userCreatedBy;
 
     @ManyToOne(optional = false)
-    @JoinColumn(name="modified_by")
+    @JoinColumn(name = "modified_by")
     private UserInfo userModifiedBy;
 
+    /**
+     * Gets the user created by.
+     *
+     * @return the user created by
+     */
     public UserInfo getUserCreatedBy() {
         return userCreatedBy;
     }
 
+    /**
+     * Sets the user created by.
+     *
+     * @param userCreatedBy the new user created by
+     */
     public void setUserCreatedBy(UserInfo userCreatedBy) {
         this.userCreatedBy = userCreatedBy;
     }
 
+    /**
+     * Gets the user modified by.
+     *
+     * @return the user modified by
+     */
     public UserInfo getUserModifiedBy() {
         return userModifiedBy;
     }
 
+    /**
+     * Sets the user modified by.
+     *
+     * @param userModifiedBy the new user modified by
+     */
     public void setUserModifiedBy(UserInfo userModifiedBy) {
         this.userModifiedBy = userModifiedBy;
     }
 
+    /**
+     * Pre persist.
+     */
     @PrePersist
-    public void        prePersist() {
+    public void prePersist() {
         Date date = new Date();
         this.createdDate = date;
         this.modifiedDate = date;
     }
 
+    /**
+     * Pre update.
+     */
     @PreUpdate
     public void preUpdate() {
         this.modifiedDate = new Date();
     }
 
+    /**
+     * Gets the id.
+     *
+     * @return the id
+     */
     public int getId() {
         return this.id;
     }
+
+    /**
+     * Sets the id.
+     *
+     * @param id the new id
+     */
     public void setId(int id) {
         this.id = id;
     }
 
+    /**
+     * Gets the scope name.
+     *
+     * @return the scope name
+     */
     public String getScopeName() {
         return descriptiveScopeName;
     }
 
+    /**
+     * Sets the scope name.
+     *
+     * @param descriptiveScopeName the new scope name
+     */
     public void setScopeName(String descriptiveScopeName) {
         this.descriptiveScopeName = descriptiveScopeName;
     }
 
+    /**
+     * Gets the search.
+     *
+     * @return the search
+     */
     public String getSearch() {
         return search;
     }
 
+    /**
+     * Sets the search.
+     *
+     * @param search the new search
+     */
     public void setSearch(String search) {
         this.search = search;
     }
 
+    /**
+     * Gets the created date.
+     *
+     * @return the created date
+     */
     public Date getCreatedDate() {
         return this.createdDate;
     }
 
+    /**
+     * Sets the created date.
+     *
+     * @param createdDate the new created date
+     */
     public void setCreatedDate(Date createdDate) {
         this.createdDate = createdDate;
     }
 
+    /**
+     * Gets the description.
+     *
+     * @return the description
+     */
     public String getDescription() {
         return this.description;
     }
 
+    /**
+     * Sets the description.
+     *
+     * @param description the new description
+     */
     public void setDescription(String description) {
         this.description = description;
     }
 
+    /**
+     * Gets the modified date.
+     *
+     * @return the modified date
+     */
     public Date getModifiedDate() {
         return this.modifiedDate;
     }
 
+    /**
+     * Sets the modified date.
+     *
+     * @param modifiedDate the new modified date
+     */
     public void setModifiedDate(Date modifiedDate) {
         this.modifiedDate = modifiedDate;
     }