微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。