首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >海布里斯de.hybris.platform.impex.jalo.ImpExException[HY--1] ImpEx中的异常

海布里斯de.hybris.platform.impex.jalo.ImpExException[HY--1] ImpEx中的异常
EN

Stack Overflow用户
提问于 2020-01-22 13:28:04
回答 1查看 970关注 0票数 2

当我尝试运行下面的de.hybris.platform.impex.jalo.ImpExExceptionHY--1代码时,会得到ImpEx异常。我在我的java.time.LocalDate文件中将原子类型属性指定为items.xml。

代码语言:javascript
运行
复制
INSERT_UPDATE ExtendedEmployee;uid[unique=true];Employee_id[unique=true];Department(code);DateOfBirth
;Jas;67890;HR;1997-10-23

Items.xml文件:

代码语言:javascript
运行
复制
<atomictypes>
    <atomictype class="java.time.LocalDate"
        extends="java.lang.Object" autocreate="true" generate="false" />
</atomictypes>
.......
.......
.......
<itemtype code="ExtendedEmployee" extends="Employee"
            generate="false" autocreate="true">

            <attributes>

                <attribute type="java.lang.String"
                    qualifier="Employee_Id">
                    <modifiers read="true" write="true" search="true"
                        optional="false" />
                    <persistence type="property" />
                </attribute>

                <attribute type="DepartmentType" qualifier="Department">
                    <modifiers read="true" write="true" search="true"
                        optional="false" />
                    <persistence type="property" />
                </attribute>

                <attribute type="java.lang.Boolean"
                    qualifier="ActiveStatus">
                    <modifiers read="true" write="true" search="true" />
                    <persistence type="property" />
                    <defaultvalue>java.lang.Boolean.TRUE</defaultvalue>
                </attribute>

                <attribute type="java.time.LocalDate" qualifier="DateOfBirth">
                    <modifiers read="true" write="true" search="true"
                        optional="false" />
                    <persistence type="property" />
                </attribute>

                <attribute type="java.lang.Integer" qualifier="Age">
                    <modifiers read="true" write="true" search="true" />
                    <persistence type="dynamic"
                        attributeHandler="ageHandler" />
                </attribute>

            </attributes>

        </itemtype>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-11-21 06:47:25

正如我在注释部分提到的,HSQL不支持LocalDate作为数据类型。当更改为java.util.Date时,它工作得很好。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59860850

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档