@Table is a CQL annotation that determines which table this class object belongs to. AFAIK, there is currently no way to make it dynamically map to any table at run time, as it will call the class name if no name is specified, i.e.
@Table
public class MyTable {...}
displays the table "mytable"
@Table(table = "another_table")
public class AnotherTable
displays the table 'another_table'
source
share