Easy-Cassandra
Easy-Cassandra copied to clipboard
Working with temporary tables
Is there a way to work with temporary tables with EasyCassandra? As I understand it, the @Entity annotation includes the table/CF name so, if I were to create a new table at runtime (with a unique name), is there a way to dynamically map an entity to it?
Yes.
You can create it dinamicly using the method addFamilyObject
http://goo.gl/S1QHkO
Would it be possible to add an optional param to specify table name, ignoring @Entity annotation in the class?
It can use the name Class