Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Java Collections

btoddb edited this page Sep 19, 2011 · 9 revisions

A POJO containing a property using the Java Collections could not be easily mapped to columns in Cassandra using HOM. You would have needed to create a custom converter that would handle the mapping .. until now. Now you can annotate a collection property using @Column just like any other property and HOM will do "the right thing".

How does it work? Each element of the collection is mapped to a Cassandra column with a simple naming scheme, "<property-name>:<index>". There is one more column, "<property-name>", that contains the type of the Collection and its size.

Currently only a java.util.List has been tested.

IN PROGRESS


Up to Hector Object Mapper (HOM)

Clone this wiki locally