label attribute icon to iconName refactor (because of eze code review)
This commit is contained in:
@@ -12,7 +12,7 @@ public class Label {
|
||||
@NotNull private User creator;
|
||||
@Nullable private Label parent;
|
||||
@NotNull private String color;
|
||||
@NotNull private String icon;
|
||||
@NotNull private String iconName;
|
||||
|
||||
public void setParent(@Nullable Label parent) {
|
||||
this.parent = parent;
|
||||
@@ -59,12 +59,12 @@ public class Label {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
public String getIconName() {
|
||||
return iconName;
|
||||
}
|
||||
|
||||
public void setIcon(@NotNull String icon) {
|
||||
this.icon = icon;
|
||||
public void setIconName(@NotNull String iconName) {
|
||||
this.iconName = iconName;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -65,16 +65,16 @@ public class RestLabel {
|
||||
label.setColor(color);
|
||||
}
|
||||
|
||||
public void setIcon(@NotNull final String icon) {
|
||||
label.setIcon(icon);
|
||||
public void setIconName(@NotNull final String iconName) {
|
||||
label.setIconName(iconName);
|
||||
}
|
||||
|
||||
@Nullable public String getColor() {
|
||||
return label.getColor();
|
||||
}
|
||||
|
||||
@Nullable public String getIcon() {
|
||||
return label.getIcon();
|
||||
@Nullable public String getIconName() {
|
||||
return label.getIconName();
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
|
@@ -11,7 +11,7 @@
|
||||
</id>
|
||||
<property name="title"/>
|
||||
<property name="color"/>
|
||||
<property name="icon"/>
|
||||
<property name="iconName"/>
|
||||
<many-to-one name="parent" column="parent_label_id" not-null="false"/>
|
||||
<many-to-one name="creator" column="creator_id" unique="true" not-null="false" lazy="proxy"/>
|
||||
</class>
|
||||
|
@@ -138,7 +138,7 @@ public class RestLabelITCase {
|
||||
restLabel.setColor(color);
|
||||
}
|
||||
if (icon != null) {
|
||||
restLabel.setIcon(icon);
|
||||
restLabel.setIconName(icon);
|
||||
}
|
||||
|
||||
// Create a new label ...
|
||||
|
Reference in New Issue
Block a user