使用 spring-data-cassandra 的用户定义类型 [英] User Defined Type with spring-data-cassandra

查看:27
本文介绍了使用 spring-data-cassandra 的用户定义类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建如下模型,如何在 spring-data-cassandra 中使用用户定义的类型?

I am looking to create models as below, how can I use user defined types in spring-data-cassandra?

{
  email: "test@example.com",
  name: {
  fname: "First",
  lname: "Last"
  }
}

推荐答案

Spring Data Cassandra 目前不支持 Cassandra 数据库 UDTs元组类型 在 SD Cassandra 的映射基础设施中.不过,我们确实计划在即将发布的版本中解决这两个问题.

Spring Data Cassandra does not currently support Cassandra Database UDTs or Tuple Types in the mapping infrastructure of SD Cassandra. However, we do plan to address both of these things in an upcoming release.

查看并遵循 DATACASS-284 - 添加对 TupleType/TupleValue 的支持DATACASS-172 - 如何处理自定义、用户定义的类型了解更多详情.

See and follow DATACASS-284 - Add support for TupleType/TupleValue and DATACASS-172 - How to handle CUSTOM, User Defined TYPEs for more details.

注意...

SD Cassandra 最近被转移到托管/维护 SD 项目的 Pivotal 保护伞下,我和 @mp911de 都是项目现在领导.

SD Cassandra was recently moved under the Pivotal umbrella of managed/maintained SD projects and both myself and @mp911de are the projects leads now.

我们最近在 SpringOne Platform 2016 上介绍 SD Cassandra,我们在其中概述了路线图(幻灯片 11,第 3 个项目符号)用于项目.

We recently presented on SD Cassandra at SpringOne Platform 2016, where we outlined the roadmap (slide 11, 3rd bullet) for the project.

这篇关于使用 spring-data-cassandra 的用户定义类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆