A few days ago, the well known Hybris Integration plugin for Intellij IDEA changed from an open source project to a paid plugin. This caused outcry from the community, mainly because of the suddenness of the change and the price being forced upon them. The previously available source code was removed from public view and … Continue reading Hybris Intellij IDEA plugin becomes paid
Endpoints in the Hybris platform web services
The Hybris platform automatically generates web service endpoints for various models. In this post, some commonly used endpoints are listed. For more information on endpoints, such as how to customize them, consult the Hybris Platform Web Services section of the platform documentation, or send me a message. The endpoints can be found under the URL … Continue reading Endpoints in the Hybris platform web services
Collections in Hybris ImpEx files
Collections in ImpEx files behave similar to normal properties. The difference lies in the multivalued nature of collections. The collection delimiter is used to separate multiple values. By default this is a colon: ,. The contents of the collection will be replaced with the provided entities after running the ImpEx. The identifier of the referenced … Continue reading Collections in Hybris ImpEx files
Elevating write permissions in vim
There exists a neat little trick to write away the file you have currently open in vim, even though you forgot to start vim with root permissions. Very handy for the next time you have been changing config files and forgot to use sudo. :w !sudo tee % Command explanation :w is the standard write … Continue reading Elevating write permissions in vim
The Hybris FlexibleSearch API
When fetching data from the database in a Hybris application, developers often use FlexibleSearch queries, executed through the FlexibleSearch API. This API allows developers various advantages: automatic translation of the database results into Hybris models conversion of Hybris models, enums... into query parameters prevention of SQL injection attacks ... It is recommended to use this API … Continue reading The Hybris FlexibleSearch API
How to detect high CPU threads and terminate them in Hybris
The following method can be used to pinpoint threads that are using a lot of CPU in an Hybris server. By following these steps, it is possible to find the cause of the increased CPU usage. Furthermore, a script is included that can be used to take immediate action against the high CPU usage. Terminology … Continue reading How to detect high CPU threads and terminate them in Hybris
Batch ImpEx updates in Hybris
Did you know that you are able to update a lot of Hybris models at the same time using ImpEx? To do this, you would use the batchmode functionality. For example, you can update some property for every red product and green product with this simple ImpEx. A little trick to update every instance of a … Continue reading Batch ImpEx updates in Hybris
Hybris Commerce Development Overview
Keeping the development tradition alive, the purpose of this hello-world style article is to provide an overview of the hybris commerce development platform. The intended audience for this article are hybris developers. I will introduce some of the basic concepts and ideas that are integral to the hybris commerce development. While there is not much code in this article, it is fairly technical. It is not a how-to article (plenty of those on the wiki), but rather a best practices discussion and hybris commerce development lay of the land. I expect you have some level of familiarity with the hybris commerce development platform. Or if you have perhaps completed the core certification (or trails) and are looking to gain a better understanding of the commerce aspect of the hybris platform, then this article may benefit you. If you are a complete newbie to hybris, this might get a bit bumpy. I would recommend perhaps…
View original post 2,236 more words
Enums in Hybris ImpEx files
In a recent Hybris project, business requested that a boolean flag that was used to indicate the purpose of a reservation had to be extended to support more specific purposes than the currently supported 'maintenance' and 'not maintenance (transport)'. In order to meet these requirements, the following changes were made in the Hybris system. First … Continue reading Enums in Hybris ImpEx files
Hybris integration tests
Writing Hybris integration tests is as simple as annotating your class with @IntegrationTest. It might also beneficial to extend the ServiceLayerTest or ServiceLayerTransactionalTest class. Afterwards, it is possible to run these integration tests from the command line using the following ant command. Sometimes you might need to update the junit tenant beforehand. It is also … Continue reading Hybris integration tests