How Do You Increase the Database Column Length For An Itemtype Attribute?
January 2, 2018
In SAP Hybris Commerce 6.x, the default database column length for an Itemtype Attribute String type is 255 characters. A client recently asked to increase the database column length for the Orders table P_NAME column from the default 255 variable characters length to 500 variable characters length. In this tutorial, I will show you how to properly increase the database column in SAP Hybris Commerce. For this tutorial, I’m using the default Hybris database, HSQLDB.

<persistence type="property"> <columntype database="hsqldb> <value>varchar(500)</value> </columntype> </persistence>
The modification should resemble the following:
*This modification only supports hsqldb, to support MySQL replace hsqldb with mysql




Marc is the Founder of HybrisArchitect.com.
He enjoys helping others learn more about SAP Commerce Cloud (Hybris). Marc is a SAP Commerce Certified Professional and has held the role of SAP Commerce Cloud Architect at Deloitte, PwC, Brillio (a Bain Company), and Nasty Gal. Marc holds an M.S. Software Engineering from Carnegie Mellon University and a B.S. in Accountancy from California State University, Fresno. He can be reached at: mraygoza@localhost