Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos


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

 <bean class="">
         <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=""/>

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

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

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Hrishikesh,

Populators are used to populate Data Objects (Copies data from model to data Objects). In your case, CustomerReviewPopulator is used to copy data from from CustomerReviewModel to ReviewData object. So to display the extra property you've added, you need to extend the CustomerReviewPopulator and inside populate method ,copy value from model to data object.

PS: We should never make changes directly in platform code, we should make changes in our custom created extensions only.

Thanks, Sandeep

Answers (0)