Here are my notes on Cassandra association. Note very readable but at least 
that there.


## Associations

Associations on composite keys cannot be supported in CQL 2. It can be done in 
CQL3

How to store associations will depend upon their type:

### Set

table:fk_column { fk_to -> ""}

### Bag

table:fk_column { fk_to -> n } where n is the number of occurrences

### List / Map (simple key)

table:fk_column { indexOrKey -> fk_to } where n is the number of occurrences

_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to