I know scala and/or JVM have a limitation with 22 more fields on case classes and the best way is to split into more than one case class eg:
case class User(id: Long, username: String, password: String, address: Address)
case class Address(id: Long, street: String, city: String)
But looking at phantom dsl documentation, all docs and examples points to a single case class.
The only exception I can see, is using JsonTable showing in this test.
The question is... how can I model inner case class using phantom-dsl for large tables?
EDIT
Just to be clear they object I'm trying to mapping into phantom.
Imagine a cassandra table with 30, 40 fields. How should I map table using case classes? Since I will receive those fields by json through a rest service, is the JsonTable example the correct approach?