cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

New attribute is not getting saved into order

0 Likes
321

Hi all,

I have created a new attribute called batchNumberString in AbstractOrder in items.xml, I want to to save it into ordermodel after placing the order.

batchNumberString is getting saved in cartmodel, but during cloning of cart into order, batchNumberString value is not present in order.

I have set the value of batchNumberString in facade layer.

cartModel.setPhysicianName(physicianName); cartModel.setBatchNumberstring(physicianName);

<itemtype code="AbstractOrder" autocreate="false" generate="true"> 
<attributes>
<attribute qualifier="physicianName" type="java.lang.String">
   <persistence type="property" /> 
   <description>Name of Physician</description> 
</attribute>
<attribute qualifier="batchNumberstring" type="java.lang.String">
   <persistence type="property" />
 </attribute>
</attributes>
</itemtype>

am I doing something wrong ?

Accepted Solutions (0)

Answers (0)