To learn this chapter, note the official wiki and official training slides (pdf) In contrast to the two places where the contents complement each other.
In this section, you can see the Hybirs data access, and the scalability of the data definition is extremely powerful.
In the real e-commerce site, the properties of the product vary widely, programmers need to expand the product's properties at any time, define and add new categories at any time. The addition of not counting, but also the high performance of the convenient access to these objects.
In the Java world, it is common to use or mapping techniques such as Hibernate, Spring, and so on to do data access.
Hybris offers its unique or mapping technology, allowing programmers to easily expand the hybris system.
Hybris Highlights:
In addition, programmers can access the object's data through the GUI interface in the Hmc-hybris Management console, accessing the custom object.
Specific operation:
1) Edit the Cuppytrail-items.xml file, add the definition of <itemtypes> and attributes/management relationship
2) Execute the ant all command on the Hybris server to generate the relevant code, the generated code is here HYBRIS\BIN\PLATFORM\BOOTSTRAP\GENSRC, not under the Cuppytrail project
3) Since the definition of the new data model is generated on the Hybris server, and the data model is bound to the database, we must update the Hybris server system, such as the data The database definition modification of the model is pushed into the table definition of the database (after an estimated update is performed, Hybris connects to the database and creates or modifies the definition of the table in the database).
English Original: Since We modified the Hybris Data Model (by modifying an items.xml file), we must update the system, i.e. push the CH Anges through to the database.
Action:go to Platform/update in the Hybris Admin Console (http://localhost:9001/platform/update). Select only the first box Update running system,