In SAP Commerce, it is possible to generate your custom Java Beans or Enums. In your extension, you can provide a configuration file in which you specify the class name, attributes, and a possible superclass of your Java Bean or Enum.
Definitions of these Java Beans or Enums are merged across extensions. For example, if two extensions specify a bean and enum with the same, fully classified class, the generated class includes the attributes from these two extensions. This way, you can extend already existing beans and enums, and do not have to subclass them, or replace references to the former bean and enum.
Feature consists of 3 separate plugins, which mainly are caused by EMF generated structure:
- com.hybris.hyeclipse.emf.beans.editor
- com.hybris.hyeclipse.emf.beans.edit
- com.hybris.hyeclipse.emf.beans
Dependency between them presents image below
SAP Help | Generating Beans and Enums
Feature introduction. Possibility to add new file from File -> New.. -> Other (⌘ N or CTRL N)
Eclipse | SAP Commerce |
---|---|
(2018-12, 2019-, 2020-) | 6.6+, 1808+, 1905+ |