RE: Why and what is use of typecode in Items in Hybris? | explain use of typecode in hybris?
a. typeCode of type
So by above combination of logic , primary key of item created in hybris
“TypeCode” play’s very important role in creating an itemType , wheather you need to create a new Table in the Backend-Database.
Hence, when you want the hybris system, to create a new item_table for your itemType then deployment tag with typecode, is specified.
<deployment table=”Mycustomer” typecode=”21119″/>
As, seen above when creating custom itemtype (i.e,. MyCustomer extends Customer) and you don’t need to store data in the parent table, then only deployment table should be used .
Note: the typecode should range from >10000 to <32767
and from 0 to 10000 is used by hybris system to create the outOfTheBox code.