47deg/firebrand — pull request #32 by johanbjork (2013-10-02 08:05:29+00:00)
Title: fixed bug that didn't resolve the @ColumnFamily name attribute in all cases

Good point, unit tests actually started failing when I added the name attribute to the SecondEntity test class.

Cassandra reads also did not work when the annotation was present. And the reason is the fix below. Also added a new unit test. Everything seems to be working now.

This fix is a bit more complicated than the first one but in essence all it does, or should do, is to replace all getSimpleName() entity occurances with the helper method. The helper method is in ClassUtil.getColumnFamilyName()

FIX:

class.getSimpleName() was present in several places in the code, added
helper method that scans for the @ColumnFamily annotation name attribute
and uses it as CF name if present, otherwise falls back to
getSimpleName()