-2

Create Table from Casssandra POjo class using spring data Cassandra is there any tag to create a table definition

Michael Petch
  • 46,082
  • 8
  • 107
  • 198
Sanjay A
  • 316
  • 3
  • 15

1 Answers1

1

Simply use annotation @Table from org.springframework.data.cassandra.core.mapping.Table and also use @PrimaryKey(value = "id") if your pojo have attribute of id. For an CassandraConfiguration.class, follow my answer here.

Rujal Shrestha
  • 362
  • 2
  • 9