Hybris Learning Note: Trail ~ New Data Model

Source: Internet
Author: User
Tags table definition

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,



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.