How to load catalogs using groovy script in hybris

We can use groovy script to check the output at runtime rather than running the application We can run groovy script in HAC We can also use the similar code in our application Let’s see below groovy script to get all the catalogs import de.hybris.platform.catalog.CatalogService; import de.hybris.platform.core.Registry; import de.hybris.platform.catalog.model.CatalogModel; CatalogService catalogService = (CatalogService) Registry.getApplicationContext().getBean(’catalogService’); println(“ […]

Share this article on

How to use Enum values in Hybris ?

Requirement : Need to get enum values from DB and we need to save enum values to DB Let us see how to do it For basic understanding of enum, please read Defining-enum types article Saving Enum value by associating it to required object Example : OrderStatus enum defined in Hybris OOTB with values like […]

Share this article on
< Previous Next >