JackRabbit Oak:迁移或更改自定义属性数据类型

问题描述

我正在使用 jackrabbit(1.22.3) Oak 实现通过 postgres sql 创建存储库。

我在节点级别创建了一些自定义属性,其中一个属性是用 Decimal 数据类型定义的,我将数字存储为所有节点的值。现在我需要将此属性数据类型更改为字符串,因为我必须接受字母数字值作为请求中的输入,并且我必须使用相同的属性

我尝试更改自定义属性中的数据类型,但出现以下错误

Node type changes: [spr:task]; repository scan took 3427ms; Failed with OakConstraint0004: /node-123[[spr:task]]: No matching property deFinition found for spr:xyz = 0","logger_name":"org.apache.jackrabbit.oak.plugins.nodetype.TypeEditorProvider","thread_name":"main","level":"INFO","level_value":20000}
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryInitialization': Invocation of init method Failed; nested exception is javax.jcr.nodetype.ConstraintViolationException: Failed to register node types.","logger_name":"org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext","level":"WARN","level_value":30000}  

请建议在 jackrabbit 中根据要求迁移或更改数据类型而不影响存储库或现有数据是否可行。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)