Skip to Content
0
Former Member
Aug 26, 2015 at 11:52 AM

Not able to fetch values added in new column created in items.xml file - Hybris 5.4

162 Views

Hi,

I have added the following code in commercefacades-beans.xml , new entry = standing

 <bean class="de.hybris.platform.commercefacades.product.data.ReviewData">
         <property name="id" type="String"/>
         <property name="headline" type="String"/>
         <property name="comment" type="String"/>
         <property name="rating" type="Double"/>
         <property name="date" type="java.util.Date"/>
         <property name="alias" type="String"/>
         <property name="standing" type="String"/>
         <property name="principal" type="de.hybris.platform.commercefacades.user.data.PrincipalData"/>
     </bean>


I also made the following entry in customerreview-items.xml

 <attribute type="java.lang.String" qualifier="standing">
                     <description>
                         Standing will be decided based upon the no of reviews.
                     </description>
                     <modifiers initial="true" optional="false" />
                     <persistence type="property" />
                 </attribute>

After running hybrisserver, i initialized the system.

The new column was created in customerReview Table.

I added a new review and inserted some value in STANDING column.

When i try to view the review, all other columns gets displayed except STANDING. It displays this column as null.

I have used the following syntax in reviewsTab.jsp -> ${review.standing}

What have i missed here?