title: Redefining data type in items.xml in Hybris
body: <p>I had a datatype defined as follows in items.xml:</p>
  
  <pre><code> &lt;attribute qualifier="daysOfWeek" type="java.lang.String"&gt;
                      &lt;persistence type="property" /&gt;
   &lt;/attribute&gt;
  </code></pre>
  
  <p>To modify the data type to enumeration,I redefined it as follows:</p>
  
  <pre><code>             &lt;enumtype code="DaysOfWeek" autocreate="true" generate="true"&gt;
                          &lt;value code="Monday" /&gt;
                          &lt;value code="Tuesday" /&gt;
            &lt;/enumtype&gt;
  
           &lt;attribute qualifier="daysOfWeek" type="DaysOfWeek"&gt;
                  &lt;persistence type="property" /&gt;
        &lt;/attribute&gt;
  </code></pre>
  
  <p>After updating the extension,I am getting SQLException.Is there anything wrong with this approach?</p>