package io.reactivesw.common.model.action;

import io.reactivesw.common.model.UpdateAction;
import lombok.Data;

/**
 * Created by Davis on 16/12/8.
 */
@Data
public class SetDescription implements UpdateAction {
  /**
   * The Description.
   */
  protected String description;

  protected String name;

  @Override
  public String getActionName() {
    return null;
  }
}

@@ -63,52 +63,310 @@
 sw.c
-ommon.model.UpdateAction;%0Aimport lombok.Data
+atalog.producttype.infrastructure.util.ProductTypeActionUtils;%0Aimport io.reactivesw.common.model.UpdateAction;%0Aimport lombok.Data;%0Aimport lombok.Getter;%0Aimport lombok.Setter;%0A%0Aimport javax.validation.constraints.Min;%0Aimport javax.validation.constraints.NotNull;%0Aimport javax.validation.constraints.Size
 ;%0A%0A/
@@ -405,20 +405,30 @@
 8.%0A */%0A@
-Data
+Getter%0A@Setter
 %0Apublic 
@@ -514,58 +514,51 @@
 /%0A  
-protected String description;%0A
+@NotNull%0A  @Size(min = 1)
 %0A  pr
-otec
+iva
 te
-d
  String 
 name
@@ -557,12 +557,19 @@
 ing 
-name
+description
 ;%0A%0A 
@@ -628,12 +628,46 @@
 urn 
-null
+ProductTypeActionUtils.SET_DESCRIPTION
 ;%0A  

fix product type bug : set description