valchkou / cassandra-driver-mapping

JPA addon for DataStax Java Driver for Cassandra
58 stars 24 forks source link

Could you put the option of adding custom indexes on the annotations? #48

Closed ghost closed 9 years ago

ghost commented 9 years ago

It's just that I have a custom index on one of my tables, and because I can't put it on the annotation the SchemaSync deletes it.

valchkou commented 9 years ago

Did you try this ?

@Table (name="mytable", indexes = { @Index(name="entity_email_idx", columnList="email" ), @Index(name="entity_name_idx", columnList="myname" ) })

ghost commented 9 years ago

Thanks! That did the trick. I thought that it would not work with custom indexes.