X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=ONAP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Frest%2Fjpa%2FAttribute.java;h=4b8059e9ce1b85243f7e289150b9bfd8c8288329;hp=a084f2c85828c86fe3de650ca81548b2e2be7d83;hb=0c20d1c294fe146e1018f14b07a8d861c29fe527;hpb=f4ec47c009cdc385a7efed02dda5d26f2ec31b57 diff --git a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/Attribute.java b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/Attribute.java index a084f2c85..4b8059e9c 100644 --- a/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/Attribute.java +++ b/ONAP-REST/src/main/java/org/onap/policy/rest/jpa/Attribute.java @@ -8,9 +8,9 @@ * 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. @@ -47,29 +47,20 @@ import javax.persistence.TemporalType; import javax.persistence.Transient; import lombok.Getter; +import lombok.NoArgsConstructor; import lombok.Setter; /** * The persistent class for the Attribute database table. - * + * */ @Entity @Table(name = "Attribute") @NamedQuery(name = "Attribute.findAll", query = "SELECT a FROM Attribute a order by a.priority asc, a.xacmlId asc") -/** - * Gets the user modified by. - * - * @return the user modified by - */ @Getter - -/** - * Sets the user modified by. - * - * @param userModifiedBy the new user modified by - */ @Setter +@NoArgsConstructor public class Attribute implements Serializable { private static final long serialVersionUID = 1L; @@ -144,16 +135,9 @@ public class Attribute implements Serializable { @JoinColumn(name = "modified_by") private UserInfo userModifiedBy; - /** - * Default constructor. - */ - public Attribute() { - // An empty constructor - } - /** * Constructor with domain. - * + * * @param domain the domain to use to construct the object */ public Attribute(String domain) { @@ -162,7 +146,7 @@ public class Attribute implements Serializable { /** * Copy constructor. - * + * * @param copy the copy to copy from */ public Attribute(Attribute copy) {