0

我正在尝试向 HMC 显示我的数据模型(具有一些 1-n 关系),但不显示我的项目的树元素。我有教程中的所有步骤,但它不起作用......

我在 xml 和构建路径中都包含了 HMC。Cuppy 教程(cuppytrailhmc)和我的项目的唯一区别是 cuppytrailhmc 扩展了 cuppy(我的项目没有扩展另一个项目)

我做错了什么,否则:我必须做什么才能在 HMC 中显示我的数据模型项目(我没有数据模型项目和另一个 hmc 项目 - 所以它们都是一个项目)?

4

3 回答 3

0

您需要做的就是将适当的指令添加到 extensioninfo.xml:

<requires-extension name="hmc"/>

<hmcmodule extensionclassname="..."/>

将加载 hmc/resources 下的 hmc.xml 文件。

于 2014-05-15T08:56:09.687 回答
0

您必须在核心的 [Extension]-items.xml 中添加一个新的 itemType

    <itemtype code="ProductList" extends="GenericItem" jaloclass="fr.portailProduit.core.jalo.ProductList" autocreate="true"
        generate="true">
        <deployment table="ProductList" typecode="8011" />
             <attributes>
            <attribute qualifier="firstName" type="java.lang.String">
                <modifiers write="true" read="true" optional="true" />
                <persistence type="property" />
            </attribute>

    </itemtype>

run ant clean all ant 更新你的系统

于 2014-10-02T10:13:14.947 回答
0

您必须在扩展中对 hmc.xml 进行更改。添加新的等元素。您可以引用任何现有的 hmc.xml。然后您必须对您的 extensionsinfo.xml 进行更改并添加一个 hmcmodule。

结帐hybrishub

于 2014-09-15T06:22:19.287 回答